]> git.saurik.com Git - apt.git/commit - cmdline/apt-get.cc
use HashStringList in the acquire system
authorDavid Kalnischkies <kalnischkies@gmail.com>
Sun, 18 Aug 2013 22:00:23 +0000 (00:00 +0200)
committerDavid Kalnischkies <david@kalnischkies.de>
Fri, 9 May 2014 11:06:27 +0000 (13:06 +0200)
commitb3501edb7091ca3aa6c2d6d96dc667b8161dd2b9
tree078d7f11b418e900e21f009275e74b51918c5961
parent1262d35895c930f3fa49d7b4182cdd7a4a841f74
use HashStringList in the acquire system

It is not very extensible to have the supported Hashes hardcoded
everywhere and especially if it is part of virtual method names.
It is also possible that a method does not support the 'best' hash
(yet), so we might end up not being able to verify a file even though we
have a common subset of supported hashes. And those are just two of the
cases in which it is handy to have a more dynamic selection.

The downside is that this is a MAJOR API break, but the HashStringList
has a string constructor for compatibility, so with a bit of luck the
few frontends playing with the acquire system directly are okay.
20 files changed:
apt-pkg/acquire-item.cc
apt-pkg/acquire-item.h
apt-pkg/acquire-method.cc
apt-pkg/acquire-method.h
apt-pkg/acquire-worker.cc
apt-pkg/contrib/hashes.cc
apt-pkg/contrib/hashes.h
apt-pkg/deb/debmetaindex.cc
apt-pkg/deb/debrecords.cc
apt-pkg/deb/debrecords.h
apt-pkg/indexcopy.cc
apt-pkg/indexrecords.cc
apt-pkg/indexrecords.h
apt-pkg/pkgrecords.h
cmdline/apt-get.cc
test/integration/test-apt-sources-deb822
test/integration/test-bug-722207-print-uris-even-if-very-quiet
test/integration/test-pdiff-usage
test/integration/test-ubuntu-bug-346386-apt-get-update-paywall
test/libapt/hashsums_test.cc