From 6f5ccfde13b99be593a5cfce1ebc68a7ee995c88 Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Tue, 23 Sep 2014 17:00:05 +0200 Subject: fix one broken test --- apt-pkg/acquire-item.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'apt-pkg') 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; } -- cgit v1.2.3