From e169fa4a85e03b2b03bb1bdba716b96654ae6050 Mon Sep 17 00:00:00 2001 From: David Kalnischkies Date: Thu, 14 Apr 2016 16:01:56 +0200 Subject: fix Alt-Filename handling of file method MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A silly of-by-one error in the stripping of the extension to check for the uncompressed filename broken in an attempt to support all compressions in commit a09f6eb8fc67cd2d836019f448f18580396185e5. Fixing this highlights also mistakes in the handling of the Alt-Filename in libapt which would cause apt to remove the file from the repository (if root has the needed rights – aka the disk isn't readonly or similar) --- test/integration/test-apt-update-file | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'test/integration') diff --git a/test/integration/test-apt-update-file b/test/integration/test-apt-update-file index 369b40f2f..20f604695 100755 --- a/test/integration/test-apt-update-file +++ b/test/integration/test-apt-update-file @@ -40,7 +40,9 @@ if [ "$(id -u)" = '0' ]; then exit fi chmod 555 aptarchive/dists/unstable/main/binary-all -testsuccess aptget update +testsuccess aptget update -o Debug::pkgAcquire::Worker=1 +cp -a rootdir/tmp/testsuccess.output rootdir/tmp/update.output +testsuccess grep '%0aAlt-Filename:%20' rootdir/tmp/update.output # the release files aren't an IMS-hit, but the indexes are redatereleasefiles '+1 hour' -- cgit v1.2.3-70-g09d2