use 'best' hash for source authentication
authorDavid Kalnischkies <kalnischkies@gmail.com>
Sun, 18 Aug 2013 21:27:24 +0000 (23:27 +0200)
committerDavid Kalnischkies <david@kalnischkies.de>
Fri, 9 May 2014 11:06:27 +0000 (13:06 +0200)
commit1262d35895c930f3fa49d7b4182cdd7a4a841f74
tree3d9874d4d7768273af4ee0907eb36d79295ab257
parentf4c3850ea335545e297504941dc8c7a8f1c83358
use 'best' hash for source authentication

Collect all hashes we can get from the source record and put them into a
HashStringList so that 'apt-get source' can use it instead of using
always the MD5sum.

We therefore also deprecate the MD5 struct member in favor of the list.

While at it, the parsing of the Files is enhanced so that records which
miss "Files" (aka MD5 checksums) are still searched for other checksums
as they include just as much data, just not with a nice and catchy name.

LP: 1098738
apt-pkg/deb/debsrcrecords.cc
apt-pkg/srcrecords.h
cmdline/apt-get.cc
test/integration/test-debsrc-hashes [deleted file]
test/integration/test-ubuntu-bug-1098738-apt-get-source-md5sum [new file with mode: 0755]