4 TESTDIR
="$(readlink -f "$(dirname "$0")")"
8 configarchitecture 'i386'
11 insertpackage 'unstable' 'foo' 'i386' '1.0'
12 insertsource 'unstable' 'foo' 'any' '1.0'
14 setupaptarchive --no-update
15 APTARCHIVE="$(readlink -f ./aptarchive)"
17 msgmsg 'Release contains only weak hashes'
18 FILENAME="${APTARCHIVE}/dists
/unstable
/InRelease
"
19 MANGLED="$(readlink -f ./rootdir)/var
/lib
/apt
/lists
/partial
/$(echo "$FILENAME" | sed 's#/#_#g')"
20 testfailuremsg "E
: Failed to fetch
file:${FILENAME} No Hash entry
in Release
file ${MANGLED} which is considered strong enough
for security purposes
21 E
: Some index files failed to download. They have been ignored
, or old ones used instead.
" apt update
25 msgmsg 'Release contains no hashes'
26 sed -i -e '/^ / d' -e '/^MD5Sum:/ d' "$APTARCHIVE/dists
/unstable
/Release
"
28 testfailuremsg "E
: Failed to fetch
file:${FILENAME} No Hash entry
in Release
file ${MANGLED}
29 E
: Some index files failed to download. They have been ignored
, or old ones used instead.
" apt update
33 msgmsg 'Release contains only weak hashes for some files'
34 confighashes 'MD5' 'SHA256'
36 sed -i '/^ [0-9a-fA-Z]\{64\} .*Sources$/d' "$APTARCHIVE/dists
/unstable
/Release
"
38 testwarningmsg "W
: Skipping acquire of configured
file 'main/source/Sources' as repository
'file:${APTARCHIVE} unstable InRelease' provides only weak security information
for it
" apt update
39 testsuccess apt show foo