]>
git.saurik.com Git - apt.git/blob - test/integration/test-apt-get-update-unauth-warning
3 # ensure we print warnings for unauthenticated repositories
7 TESTDIR
=$(readlink -f $(dirname $0))
11 configarchitecture
"i386"
13 # a "normal" package with source and binary
14 buildsimplenativepackage
'foo' 'all' '2.0'
16 setupaptarchive
--no-update
18 APTARCHIVE
=$(readlink -f ./aptarchive)
19 rm -f $APTARCHIVE/dists
/unstable
/*Release
*
21 # update without authenticated InRelease file
22 testequal
"Ign file: unstable InRelease
23 Ign file: unstable Release
24 Reading package lists...
25 W: The data from 'file: unstable Release' is not signed. Packages from that repository can not be authenticated." aptget update
27 # ensure we can not install the package
28 testequal
"WARNING: The following packages cannot be authenticated!
30 E: There are problems and -y was used without --force-yes" aptget
install -qq -y foo