Michael Vogt лет назад: 11
Родитель
Сommit
6f5ccfde13
1 измененных файлов с 3 добавлено и 4 удалено
  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)
       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;
    }