From 8076139ead08124e86be5f993baa8a43c22b0137 Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Thu, 6 Dec 2007 18:40:09 +0100 Subject: [PATCH] * methods/gpgv.cc: - remove cruft code that caused timestamp/I-M-S issues --- debian/changelog | 3 +++ methods/gpgv.cc | 17 ----------------- 2 files changed, 3 insertions(+), 17 deletions(-) diff --git a/debian/changelog b/debian/changelog index ca4a9bbe..fd2162b2 100644 --- a/debian/changelog +++ b/debian/changelog @@ -18,8 +18,11 @@ apt (0.7.10) unstable; urgency=low [ Michael Vogt ] * debian/rules - fix https install location + * methods/gpgv.cc: + - remove cruft code that caused timestamp/I-M-S issues * ftparchive/contents.cc: - fix error output + [ Chris Cheney ] * ftparchive/contents.cc: - support lzma data members diff --git a/methods/gpgv.cc b/methods/gpgv.cc index 2b1fa516..01b24085 100644 --- a/methods/gpgv.cc +++ b/methods/gpgv.cc @@ -266,23 +266,6 @@ bool GPGVMethod::Fetch(FetchItem *Itm) return _error->Error(errmsg.c_str()); } - // Transfer the modification times - struct stat Buf; - if (stat(Path.c_str(),&Buf) != 0) - return _error->Errno("stat",_("Failed to stat %s"), Path.c_str()); - - struct utimbuf TimeBuf; - TimeBuf.actime = Buf.st_atime; - TimeBuf.modtime = Buf.st_mtime; - if (utime(Itm->DestFile.c_str(),&TimeBuf) != 0) - return _error->Errno("utime",_("Failed to set modification time")); - - if (stat(Itm->DestFile.c_str(),&Buf) != 0) - return _error->Errno("stat",_("Failed to stat")); - - // Return a Done response - Res.LastModified = Buf.st_mtime; - Res.Size = Buf.st_size; // Just pass the raw output up, because passing it as a real data // structure is too difficult with the method stuff. We keep it // as three separate vectors for future extensibility. -- 2.20.1