]>
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 files leads to warning
22 testequal
"Ign file: unstable InRelease
24 Err file: unstable Release
26 W: The repository 'file: unstable Release' does not have a Release file. This is deprecated, please contact the owner of the repository.
27 W: Use --allow-insecure-repositories to force the update
28 W: Failed to fetch file: $APTARCHIVE /dists/unstable/Release File not found
30 E: Some index files failed to download. They have been ignored, or old ones used instead." aptget update
33 testequal
"Listing..." apt list foo
34 testequal
"partial" ls rootdir
/ var
/ lib
/ apt
/ lists
37 testequal
"Ign file: unstable InRelease
39 Ign file: unstable Release
41 Reading package lists...
42 W: The repository 'file: unstable Release' does not have a Release file. This is deprecated, please contact the owner of the repository." aptget update
--allow-insecure-repositories
43 # ensure we can not install the package
44 testequal
"WARNING: The following packages cannot be authenticated!
46 E: There are problems and -y was used without --force-yes" aptget
install -qq -y foo