]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/acquire-method.cc
* mirror-failure.py: example mirror failure cgi
[apt.git] / apt-pkg / acquire-method.cc
index 04c62eaaa3997a06002b77c1ec863a790f1de701..638797657d94afaeea1775e26ad3f66696d22dec 100644 (file)
@@ -277,7 +277,7 @@ bool pkgAcqMethod::MediaFail(string Required,string Drive)
            MyMessages.erase(MyMessages.begin());
         }
 
-        return !StringToBool(LookupTag(Message,"Fail"),false);
+        return !StringToBool(LookupTag(Message,"Failed"),false);
       }
       
       Messages.push_back(Message);
@@ -368,6 +368,7 @@ int pkgAcqMethod::Run(bool Single)
            
            Tmp->Uri = LookupTag(Message,"URI");
            Tmp->DestFile = LookupTag(Message,"FileName");
+           Tmp->ExpectedMD5 = LookupTag(Message,"ExpectedMD5");
            if (StrToTime(LookupTag(Message,"Last-Modified"),Tmp->LastModified) == false)
               Tmp->LastModified = 0;
            Tmp->IndexFile = StringToBool(LookupTag(Message,"Index-File"),false);