From: Michael Vogt Date: Tue, 23 Sep 2014 15:00:05 +0000 (+0200) Subject: fix one broken test X-Git-Tag: 1.1.exp4~6^2~48 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/6f5ccfde13b99be593a5cfce1ebc68a7ee995c88?hp=--cc fix one broken test --- 6f5ccfde13b99be593a5cfce1ebc68a7ee995c88 diff --git a/apt-pkg/acquire-item.cc b/apt-pkg/acquire-item.cc index e8b0e25de..7185a5efa 100644 --- a/apt-pkg/acquire-item.cc +++ b/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; }