summaryrefslogtreecommitdiff
path: root/apt-pkg
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2007-08-09 12:34:46 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2007-08-09 12:34:46 +0200
commit9152d475de2c65d144fc3008043244d4622e136d (patch)
treea2cc18d5e00a90dac603ea64c96338c2b73cf596 /apt-pkg
parent73eb1788912790f19d42d8c95b98fcb5760fbbdf (diff)
parent5177f8024b512f1dca86aaececc5fbc708948ad4 (diff)
* apt-pkg/acquire-item.cc:
- fix file removal on local repo i-m-s hit (LP: #131166) * tests/local-repo: - added regression test for this bug * apt-pkg/pkgcachegen.cc: - increase default mmap size * tests/local-repo: - added local repository testcase
Diffstat (limited to 'apt-pkg')
-rw-r--r--apt-pkg/acquire-item.cc3
1 files changed, 0 insertions, 3 deletions
diff --git a/apt-pkg/acquire-item.cc b/apt-pkg/acquire-item.cc
index 3e6262c96..b5c2149cc 100644
--- a/apt-pkg/acquire-item.cc
+++ b/apt-pkg/acquire-item.cc
@@ -724,10 +724,7 @@ void pkgAcqIndex::Done(string Message,unsigned long Size,string Hash,
{
// The files timestamp matches
if (StringToBool(LookupTag(Message,"Alt-IMS-Hit"),false) == true)
- {
- unlink(FileName.c_str());
return;
- }
Decompression = true;
Local = true;
DestFile += ".decomp";