3 # Ensure that we do not modify file:/// uris (regression test for
8 TESTDIR
=$(readlink -f $(dirname $0))
12 configarchitecture
"amd64"
13 configcompression
'bz2' 'gz'
15 insertpackage
'unstable' 'foo' 'all' '1.0'
18 setupaptarchive
--no-update
20 # ensure the archive is not writable
21 chmod 550 aptarchive
/dists
/unstable
/main
/binary
-amd64
23 testsuccess aptget update
-qq
24 testsuccess aptget update
-qq
25 aptget update
-qq -o Debug
::pkgAcquire
::Auth
=1 2> output.log
27 # ensure that the hash of the uncompressed file was verified even on a local
29 canary
="SHA512:$(bzcat aptarchive/dists/unstable/main/binary-amd64/Packages.bz2 | sha512sum |cut -f1 -d' ')"
30 grep -q "RecivedHash: $canary" output.log
32 # foo is still available
33 testsuccess aptget
install -s foo
35 # the cleanup should still work
36 chmod 750 aptarchive
/dists
/unstable
/main
/binary
-amd64