summaryrefslogtreecommitdiff
path: root/methods/gpgv.cc
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2007-12-06 18:40:09 +0100
committerMichael Vogt <michael.vogt@ubuntu.com>2007-12-06 18:40:09 +0100
commit8076139ead08124e86be5f993baa8a43c22b0137 (patch)
treee4ad4f81894dd82f4b0dda7f41c8fbcb6e546569 /methods/gpgv.cc
parent24e135b60082a96776589ddbb2744574ddfb75e6 (diff)
* methods/gpgv.cc:
- remove cruft code that caused timestamp/I-M-S issues
Diffstat (limited to 'methods/gpgv.cc')
-rw-r--r--methods/gpgv.cc17
1 files changed, 0 insertions, 17 deletions
diff --git a/methods/gpgv.cc b/methods/gpgv.cc
index 2b1fa5169..01b240856 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.