]> git.saurik.com Git - apt.git/commitdiff
fix one broken test
authorMichael Vogt <mvo@ubuntu.com>
Tue, 23 Sep 2014 15:00:05 +0000 (17:00 +0200)
committerMichael Vogt <mvo@ubuntu.com>
Tue, 23 Sep 2014 15:00:05 +0000 (17:00 +0200)
apt-pkg/acquire-item.cc

index e8b0e25def18c20a8e6cca55b0a884b8f3428085..7185a5efa2408f38f30f8d8b0205e9cb8357e068 100644 (file)
@@ -1158,11 +1158,10 @@ void pkgAcqIndex::Done(string Message,unsigned long long Size,HashStringList con
        StringToBool(LookupTag(Message,"IMS-Hit"),false) == true)
       return;
 
-   // The files timestamp matches, for non-local URLs reverify the local
-   // file, for local file, uncompress again to ensure the hashsum is still
-   // matching the Release file
-   if (!Local && StringToBool(LookupTag(Message,"IMS-Hit"),false) == true)
+   // The files timestamp matches, reverify by copy into partial/
+   if (StringToBool(LookupTag(Message,"IMS-Hit"),false) == true)
    {
+      Erase = false;
       ReverifyAfterIMS();
       return;
    }