]>
git.saurik.com Git - apt.git/blob - test/integration/test-releasefile-verification-noflat
4 TESTDIR
="$(readlink -f "$(dirname "$0")")"
8 configarchitecture "i386
"
10 export APT_DONT_SIGN='Release.gpg'
11 insertpackage 'unstable' 'foo' 'i386' '1.0'
12 setupaptarchive "now
" "now
+ 1 year
"
15 SIXPACK="$(aptkey --keyring keys/joesixpack.pub finger | grep 'Key fingerprint' | cut -d'=' -f 2 | tr -d ' ')"
17 testsuccess aptget update
19 msgmsg 'Warm archive with signed-by' 'Joe Sixpack'
20 sed -i "/^Valid
-Until: / a\
21 Signed
-By: ${SIXPACK}" rootdir/var/lib/apt/lists/*Release
22 touch -d 'now - 1 year' rootdir/var/lib/apt/lists/*Release
23 testsuccessequal "Get
:1 http
://localhost
:${APTHTTPPORT} unstable InRelease
[$(stat -c '%s' 'aptarchive/dists/unstable/InRelease') B
]
24 Reading package lists...
" aptget update
25 testsuccess aptcache show foo