]>
git.saurik.com Git - apt.git/blob - test/integration/test-apt-get-update-unauth-warning
ada7f7a26769232c0faf12836b37be48dece6974
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 files leads to warning
22 testfailureequal
"Ign file: $APTARCHIVE unstable InRelease
24 Err file: $APTARCHIVE unstable Release
26 W: The repository 'file: $APTARCHIVE unstable Release' does not have a Release file. This is deprecated, please contact the owner of the repository.
27 E: Use --allow-insecure-repositories to force the update" aptget update
--no-allow-insecure-repositories
30 testsuccessequal
'Listing...' apt list foo
32 partial' ls rootdir
/ var
/ lib
/ apt
/ lists
35 testwarningequal
"Ign file: $APTARCHIVE unstable InRelease
37 Ign file: $APTARCHIVE unstable Release
39 Reading package lists...
40 W: The repository 'file: $APTARCHIVE unstable Release' does not have a Release file. This is deprecated, please contact the owner of the repository." aptget update
--allow-insecure-repositories
41 # ensure we can not install the package
42 testfailureequal
"WARNING: The following packages cannot be authenticated!
44 E: There are problems and -y was used without --force-yes" aptget
install -qq -y foo