summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:54:42 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:54:42 +0000
commit0dfc08291b103774b7b712619846748856920856 (patch)
treed7d1e6afc021d67f057e6700be1710ad3f57f25b
parent5f7b0ff448a3fc0700949ad01b1b85906ad6098b (diff)
Added timestamp to exit path
Author: jgg Date: 1999-09-05 05:41:41 GMT Added timestamp to exit path
-rw-r--r--methods/ftp.cc11
1 files changed, 10 insertions, 1 deletions
diff --git a/methods/ftp.cc b/methods/ftp.cc
index 420b44764..6f4b00307 100644
--- a/methods/ftp.cc
+++ b/methods/ftp.cc
@@ -1,6 +1,6 @@
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: ftp.cc,v 1.14 1999/07/18 23:06:56 jgg Exp $
+// $Id: ftp.cc,v 1.15 1999/09/05 05:41:41 jgg Exp $
/* ######################################################################
HTTP Aquire Method - This is the FTP aquire method for APT.
@@ -848,6 +848,15 @@ bool FtpMethod::Fetch(FetchItem *Itm)
bool Missing;
if (Server->Get(File,Fd,Res.ResumePoint,MD5,Missing) == false)
{
+ Fd.Close();
+
+ // Timestamp
+ struct utimbuf UBuf;
+ time(&UBuf.actime);
+ UBuf.actime = FailTime;
+ UBuf.modtime = FailTime;
+ utime(FailFile.c_str(),&UBuf);
+
// If the file is missing we hard fail otherwise transient fail
if (Missing == true)
return false;