]> git.saurik.com Git - apt.git/blobdiff - methods/ftp.cc
* merged from apt--mvo
[apt.git] / methods / ftp.cc
index f595e0ca4c0c41ae904bce696a1ae644faac12e9..0c2aa00a76a599fc5c0dea110862db30b3fd5d08 100644 (file)
@@ -1055,9 +1055,12 @@ bool FtpMethod::Fetch(FetchItem *Itm)
         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;
+        }
         Fail(true);
         return true;
       }