]>
git.saurik.com Git - apt.git/blob - test/integration/test-bug-596498-trusted-unsigned-repo
4 TESTDIR
=$(readlink -f $(dirname $0))
7 configarchitecture
'i386'
9 buildsimplenativepackage
'cool' 'i386' '1.0' 'unstable'
14 rm -rf rootdir
/var
/lib
/apt
/ rootdir
/var
/cache
/apt
/*.bin
18 PKGTEXT
="$(aptget install cool --assume-no -d | head -n 7)"
19 DEBFILE
='rootdir/etc/apt/sources.list.d/apt-test-unstable-deb.list'
22 Download complete and in download only mode" aptget
install cool
--assume-no -d
24 sed -i -e 's#deb#deb [trusted=no]#' $DEBFILE
28 WARNING: The following packages cannot be authenticated!
30 Install these packages without verification [y/N]? N
31 E: Some packages could not be authenticated" aptget
install cool
--assume-no -d
33 find aptarchive
/ \
( -name 'Release.gpg' -o -name 'InRelease' \
) -delete
34 sed -i -e 's#deb \[trusted=no\]#deb#' $DEBFILE
38 WARNING: The following packages cannot be authenticated!
40 Install these packages without verification [y/N]? N
41 E: Some packages could not be authenticated" aptget
install cool
--assume-no -d
43 sed -i -e 's#deb#deb [trusted=yes]#' $DEBFILE
47 Download complete and in download only mode" aptget
install cool
--assume-no -d