]>
git.saurik.com Git - apt.git/blob - test/integration/test-bug-838779-untrusted-to-trusted-Release-hit
4 TESTDIR
="$(readlink -f "$(dirname "$0")")"
7 configarchitecture 'amd64'
9 buildsimplenativepackage 'foo' 'all' '1' 'stable'
11 export APT_DONT_SIGN=''
12 setupaptarchive --no-update
16 testsuccess aptget update
17 testdpkgnotinstalled 'foo'
18 testsuccess apt install foo -y
19 testdpkginstalled 'foo'
20 testsuccess apt purge foo -y
21 testdpkgnotinstalled 'foo'
23 msgmsg 'Untrusted to trusted hit' 'InRelease'
24 rm -rf rootdir/var/lib/apt/lists rootdir/var/cache/apt/archives
25 mv rootdir/etc/apt/trusted.gpg.d rootdir/etc/apt/trusted.gpg.d-bak
26 testwarning aptget update
27 testfailure apt install foo -y
28 testdpkgnotinstalled 'foo'
29 mv rootdir/etc/apt/trusted.gpg.d-bak rootdir/etc/apt/trusted.gpg.d
30 testsuccess aptget update
31 testsuccess apt install foo -y
32 testdpkginstalled 'foo'
33 testsuccess apt purge foo -y
34 testdpkgnotinstalled 'foo'
36 msgmsg 'Untrusted to trusted hit' 'Release.gpg'
37 find aptarchive -name 'InRelease' -delete
38 rm -rf rootdir/var/lib/apt/lists rootdir/var/cache/apt/archives
39 mv rootdir/etc/apt/trusted.gpg.d rootdir/etc/apt/trusted.gpg.d-bak
40 testwarning aptget update
41 testfailure apt install foo -y
42 testdpkgnotinstalled 'foo'
43 mv rootdir/etc/apt/trusted.gpg.d-bak rootdir/etc/apt/trusted.gpg.d
44 testsuccess aptget update
45 testsuccess apt install foo -y
46 testdpkginstalled 'foo'