Skip to content
Commit e175130e authored by Julian Andres Klode's avatar Julian Andres Klode
Browse files

apt/package.py: Use all hashes when fetching packages

The md5 hash was removed in 1.9.0, but still used here. Convert
the code to use the new HashStringList support.

Closes: #944696
LP: #1858972
CVE-2019-15795

(cherry picked from commits 31811d3e,
 and 6c4f875b)

Also check that we have trusted hashes when downloading

1.9.1 switched the code from using md5 to hash string list, but
never checked that we actually had usable hashes. Do that check
now and raise a new exception if it failed.

This regression was tracked in Debian Bug #946597
parent 3cf109c2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment