diff options
author | Julian Andres Klode <jak@debian.org> | 2017-09-03 14:38:58 +0200 |
---|---|---|
committer | Julian Andres Klode <jak@debian.org> | 2017-09-09 20:12:15 +0200 |
commit | 8d23827be3043daf7fed1b86da1d41578889eaeb (patch) | |
tree | 824caa9e5112763a71053cf9284ec0cb4549e589 /test/integration/test-apt-update-weak-hashes | |
parent | 03ba8fcc5fe9560084b40b955067da7e60b2e1c0 (diff) |
ftparchive: Do not pass through disabled hashes in Sources
When writing a Sources files hashes that were already present
in the .dsc were always copied through (or modified), even if
disabled. Remove them instead when they are disabled, otherwise
we end up with hashes for tarballs and stuff but not for dsc
files (as the dsc obviously does not hash itself).
Also adjust the tests: test-compressed-indexes relied on Files
being present in showsrc, and test-apt-update-weak-hashes expected
the tarball to be downloaded when an archive only has MD5 and we
are requiring SHA256 because that used to work because the tarball
was always included.
Closes: #872963
Diffstat (limited to 'test/integration/test-apt-update-weak-hashes')
-rwxr-xr-x | test/integration/test-apt-update-weak-hashes | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/integration/test-apt-update-weak-hashes b/test/integration/test-apt-update-weak-hashes index b07dba6a2..c44ab9ab0 100755 --- a/test/integration/test-apt-update-weak-hashes +++ b/test/integration/test-apt-update-weak-hashes @@ -198,5 +198,5 @@ testsuccess apt source foo4 cp ../rootdir/tmp/testsuccess.output source.output testsuccess grep 'Skipping download of file' source.output testfailure test -e foo4_1.dsc -testsuccess test -e foo4_1.tar.* +testfailure test -e foo4_1.tar.* cd .. |