Explorar o código

fix one broken test

Michael Vogt %!s(int64=11) %!d(string=hai) anos
pai
achega
6f5ccfde13
Modificáronse 1 ficheiros con 3 adicións e 4 borrados
  1. 3 4
      apt-pkg/acquire-item.cc

+ 3 - 4
apt-pkg/acquire-item.cc

@@ -1158,11 +1158,10 @@ void pkgAcqIndex::Done(string Message,unsigned long long Size,HashStringList con
        StringToBool(LookupTag(Message,"IMS-Hit"),false) == true)
        StringToBool(LookupTag(Message,"IMS-Hit"),false) == true)
       return;
       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();
       ReverifyAfterIMS();
       return;
       return;
    }
    }