]> git.saurik.com Git - apt.git/commitdiff
support getting only-uncompressed files via by-hash
authorDavid Kalnischkies <david@kalnischkies.de>
Mon, 15 Aug 2016 08:51:07 +0000 (10:51 +0200)
committerDavid Kalnischkies <david@kalnischkies.de>
Wed, 17 Aug 2016 05:55:45 +0000 (07:55 +0200)
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.

apt-pkg/acquire-item.cc

index 38d6c72dd8ca4b518d8c42185b4b5482d81efae5..b8786e34b9aaf39fee031ea2b21f429d6c8a6998 100644 (file)
@@ -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);