]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/acquire-item.cc
Send "Fail-Reason: MaximumSizeExceeded" from the method
[apt.git] / apt-pkg / acquire-item.cc
index 1dcbde2233078815370c85c1ee67e3f9ec99461f..f630129b9fc379ecf2af5cc1111ba3f28ce3a175 100644 (file)
@@ -148,8 +148,12 @@ void pkgAcquire::Item::Failed(string Message,pkgAcquire::MethodConfig *Cnf)
    else
       Status = StatIdle;
 
-   // report mirror failure back to LP if we actually use a mirror
+   // check fail reason
    string FailReason = LookupTag(Message, "FailReason");
+   if(FailReason == "MaximumSizeExceeded")
+      Rename(DestFile, DestFile+".FAILED");
+
+   // report mirror failure back to LP if we actually use a mirror
    if(FailReason.size() != 0)
       ReportMirrorFailure(FailReason);
    else