]> git.saurik.com Git - apt.git/commit - apt-pkg/acquire-item.cc
don't try other compressions on hashsum mismatch
authorDavid Kalnischkies <david@kalnischkies.de>
Tue, 19 May 2015 08:40:55 +0000 (10:40 +0200)
committerDavid Kalnischkies <david@kalnischkies.de>
Sun, 7 Jun 2015 07:42:53 +0000 (09:42 +0200)
commit58702f8563a443a7c6e66253b259c2488b877290
treefcc3b9d5689237cf36fb496989b670299c1641aa
parent4fc6b7570c3e97b65c118b58cdf6729fa94c9b03
don't try other compressions on hashsum mismatch

If we e.g. fail on hash verification for Packages.xz its highly unlikely
that it will be any better with Packages.gz, so we just waste download
bandwidth and time. It also causes us always to fallback to the
uncompressed Packages file for which the error will finally be reported,
which in turn confuses users as the file usually doesn't exist on the
mirrors, so a bug in apt is suspected for even trying it…
apt-pkg/acquire-item.cc
test/integration/test-apt-update-not-modified
test/integration/test-apt-update-rollback
test/integration/test-apt-update-transactions