projects
/
apt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* buildlib/systemtable, configure.in:
[apt.git]
/
methods
/
ftp.cc
diff --git
a/methods/ftp.cc
b/methods/ftp.cc
index f595e0ca4c0c41ae904bce696a1ae644faac12e9..0c2aa00a76a599fc5c0dea110862db30b3fd5d08 100644
(file)
--- a/
methods/ftp.cc
+++ b/
methods/ftp.cc
@@
-1055,9
+1055,12
@@
bool FtpMethod::Fetch(FetchItem *Itm)
UBuf.modtime = FailTime;
utime(FailFile.c_str(),&UBuf);
UBuf.modtime = FailTime;
utime(FailFile.c_str(),&UBuf);
- // If the file is missing we hard fail otherwise transient fail
- if (Missing == true)
+ // If the file is missing we hard fail and delete the destfile
+ // otherwise transient fail
+ if (Missing == true) {
+ unlink(FailFile.c_str());
return false;
return false;
+ }
Fail(true);
return true;
}
Fail(true);
return true;
}