summaryrefslogtreecommitdiff
path: root/apt-pkg/acquire-item.cc
diff options
context:
space:
mode:
authorMichael Vogt <mvo@debian.org>2014-09-29 10:41:31 +0200
committerMichael Vogt <mvo@debian.org>2014-09-29 10:41:31 +0200
commitc36db2b56a08bb7542d0c1be900ee90808efa770 (patch)
treebc83e8610755c5c1cb57374f2d9e95a5dab966cc /apt-pkg/acquire-item.cc
parent4c333a25a88b1afac2ed50bf1b9af61dc5b09343 (diff)
Adjust DestFile in ReverifyAfterIMS() to not include compr Extension
Diffstat (limited to 'apt-pkg/acquire-item.cc')
-rw-r--r--apt-pkg/acquire-item.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/apt-pkg/acquire-item.cc b/apt-pkg/acquire-item.cc
index 923a153a7..d6b00f9b7 100644
--- a/apt-pkg/acquire-item.cc
+++ b/apt-pkg/acquire-item.cc
@@ -1104,6 +1104,13 @@ std::string pkgAcqIndex::GetFinalFilename() const
void pkgAcqIndex::ReverifyAfterIMS()
{
std::string const compExt = CompressionExtension.substr(0, CompressionExtension.find(' '));
+
+ // update destfile to *not* include the compression extension when doing
+ // a reverify (as its uncompressed on disk already)
+ DestFile = _config->FindDir("Dir::State::lists") + "partial/";
+ DestFile += URItoFileName(RealURI);
+
+ // adjust DestFile if its compressed on disk
if (_config->FindB("Acquire::GzipIndexes",false) == true)
DestFile += compExt;