]> git.saurik.com Git - apt.git/commit
show a more descriptive error for weak Release files
authorDavid Kalnischkies <david@kalnischkies.de>
Mon, 14 Dec 2015 01:18:25 +0000 (02:18 +0100)
committerDavid Kalnischkies <david@kalnischkies.de>
Mon, 14 Dec 2015 01:26:23 +0000 (02:26 +0100)
commitbd4a8f51649ee37291c6e07310104a94f4f5fbed
tree6ec200a62164dd318cc675a180cfb11c0e7d5c60
parent8deda84ed86bae6bfa83f5c25d15fd4611c637c0
show a more descriptive error for weak Release files

If we can't work with the hashes we parsed from the Release file we
display now an error message if the Release file includes only weak
hashes instead of downloading the indexes and failing to verify them
with "Hash Sum mismatch" even through the hashes didn't mismatch (they
were just weak).

If for some (unlikely) reason we have got weak hashes only for
individual targets we will show a warning to this effect (again, befor
downloading and failing the index itself).

Closes: 806459
apt-pkg/acquire-item.cc
apt-pkg/deb/debmetaindex.cc
test/integration/framework
test/integration/test-apt-update-weak-hashes [new file with mode: 0755]