summaryrefslogtreecommitdiff
path: root/apt-pkg/acquire-item.cc
diff options
context:
space:
mode:
authorMichael Vogt <mvo@ubuntu.com>2014-09-23 17:00:05 +0200
committerMichael Vogt <mvo@ubuntu.com>2014-09-23 17:00:05 +0200
commit6f5ccfde13b99be593a5cfce1ebc68a7ee995c88 (patch)
tree2d904f870017f38a27d9db5d75301f29457380c8 /apt-pkg/acquire-item.cc
parenta944ebe7e17d4f7fdb6540babe5bb2b71cc84053 (diff)
fix one broken test
Diffstat (limited to 'apt-pkg/acquire-item.cc')
-rw-r--r--apt-pkg/acquire-item.cc7
1 files changed, 3 insertions, 4 deletions
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;
}