summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2016-08-15 10:51:07 +0200
committerDavid Kalnischkies <david@kalnischkies.de>2016-08-17 07:55:45 +0200
commita99bb943e97883af6f063af9eb14e20b7a7320fc (patch)
treef24d51ba9e0ef179330082b050b51f3c16ba47cf
parent3084ef2292642d43e533654354a4929abe55d91b (diff)
support getting only-uncompressed files via by-hash
The URI we later want to modify to get the file via by-hash was unset in case a file was only available uncompressed (which is usually not the case) causing an acquire error.
-rw-r--r--apt-pkg/acquire-item.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/apt-pkg/acquire-item.cc b/apt-pkg/acquire-item.cc
index 38d6c72dd..b8786e34b 100644
--- a/apt-pkg/acquire-item.cc
+++ b/apt-pkg/acquire-item.cc
@@ -2879,6 +2879,8 @@ void pkgAcqIndex::Init(string const &URI, string const &URIDesc,
Desc.URI = URI + '.' + CurrentCompressionExtension;
DestFile = DestFile + '.' + CurrentCompressionExtension;
}
+ else
+ Desc.URI = URI;
HashStringList const Hashes = GetExpectedHashes();
HashString const * const TargetHash = Hashes.find(NULL);