summaryrefslogtreecommitdiff
path: root/methods/ftp.cc
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:55:37 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:55:37 +0000
commit7ef724464cfe431862e0731327a3a131505fa38d (patch)
treea979b8372399fddcbdfbaba14b1e5c9e5060cb0f /methods/ftp.cc
parent5af32db6607ca018936285fd19a776bd10a418f0 (diff)
Fixed ftp resume
Author: jgg Date: 2000-01-10 03:44:54 GMT Fixed ftp resume
Diffstat (limited to 'methods/ftp.cc')
-rw-r--r--methods/ftp.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/methods/ftp.cc b/methods/ftp.cc
index 1780ac740..ac12d0913 100644
--- a/methods/ftp.cc
+++ b/methods/ftp.cc
@@ -1,6 +1,6 @@
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: ftp.cc,v 1.18 1999/12/10 07:21:52 jgg Exp $
+// $Id: ftp.cc,v 1.19 2000/01/10 03:44:54 jgg Exp $
/* ######################################################################
HTTP Aquire Method - This is the FTP aquire method for APT.
@@ -814,6 +814,7 @@ bool FtpMethod::Fetch(FetchItem *Itm)
{
Res.Size = Buf.st_size;
Res.LastModified = Buf.st_mtime;
+ Res.ResumePoint = Buf.st_size;
URIDone(Res);
return true;
}
@@ -843,7 +844,6 @@ bool FtpMethod::Fetch(FetchItem *Itm)
// Timestamp
struct utimbuf UBuf;
- time(&UBuf.actime);
UBuf.actime = FailTime;
UBuf.modtime = FailTime;
utime(FailFile.c_str(),&UBuf);
@@ -863,7 +863,6 @@ bool FtpMethod::Fetch(FetchItem *Itm)
// Timestamp
struct utimbuf UBuf;
- time(&UBuf.actime);
UBuf.actime = FailTime;
UBuf.modtime = FailTime;
utime(Queue->DestFile.c_str(),&UBuf);