]>
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"
12 configcompression
'.' 'gz'
14 # a "normal" package with source and binary
15 buildsimplenativepackage
'foo' 'all' '2.0'
17 setupaptarchive
--no-update
19 APTARCHIVE
= $(readlink -f ./aptarchive)
20 rm -f $APTARCHIVE / dists
/ unstable
/* Release
*
22 # update without authenticated files leads to warning
23 testfailureequal
"Get:1 file: $APTARCHIVE unstable InRelease
24 Ign:1 file: $APTARCHIVE unstable InRelease
26 Get:2 file: $APTARCHIVE unstable Release
27 Err:2 file: $APTARCHIVE unstable Release
29 Reading package lists...
30 W: The repository 'file: $APTARCHIVE unstable Release' does not have a Release file. This is deprecated, please contact the owner of the repository.
31 E: Use --allow-insecure-repositories to force the update" aptget update
--no-allow-insecure-repositories
34 testsuccessequal
'Listing...' apt list foo
36 partial' ls rootdir
/ var
/ lib
/ apt
/ lists
39 stat
-c % s
" $(aptget indextargets --no-release-info --format '$(URI) ' " Created
-By : $1 " | cut -d'/' -f 3- ).gz"
42 #aptget update --allow-insecure-repositories -o Debug::pkgAcquire::worker=1
44 testwarningequal
"Get:1 file: $APTARCHIVE unstable InRelease
45 Ign:1 file: $APTARCHIVE unstable InRelease
47 Get:2 file: $APTARCHIVE unstable Release
48 Ign:2 file: $APTARCHIVE unstable Release
50 Get:3 file: $APTARCHIVE unstable/main Sources
51 Ign:3 file: $APTARCHIVE unstable/main Sources
53 Get:4 file: $APTARCHIVE unstable/main i386 Packages
54 Ign:4 file: $APTARCHIVE unstable/main i386 Packages
56 Get:5 file: $APTARCHIVE unstable/main Translation-en
57 Ign:5 file: $APTARCHIVE unstable/main Translation-en
59 Get:3 file: $APTARCHIVE unstable/main Sources
60 Ign:3 file: $APTARCHIVE unstable/main Sources
62 Get:4 file: $APTARCHIVE unstable/main i386 Packages
63 Ign:4 file: $APTARCHIVE unstable/main i386 Packages
65 Get:5 file: $APTARCHIVE unstable/main Translation-en
66 Ign:5 file: $APTARCHIVE unstable/main Translation-en
68 Get:3 file: $APTARCHIVE unstable/main Sources
69 Ign:3 file: $APTARCHIVE unstable/main Sources
71 Get:4 file: $APTARCHIVE unstable/main i386 Packages
72 Ign:4 file: $APTARCHIVE unstable/main i386 Packages
74 Get:5 file: $APTARCHIVE unstable/main Translation-en
75 Ign:5 file: $APTARCHIVE unstable/main Translation-en
77 Get:3 file: $APTARCHIVE unstable/main Sources [ $(filesize 'Sources') B]
78 Get:4 file: $APTARCHIVE unstable/main i386 Packages [ $(filesize 'Packages') B]
79 Get:5 file: $APTARCHIVE unstable/main Translation-en [ $(filesize 'Translations') B]
80 Reading package lists...
81 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
82 # ensure we can not install the package
83 testfailureequal
"WARNING: The following packages cannot be authenticated!
85 E: There were unauthenticated packages and -y was used without --allow-unauthenticated" aptget
install -qq -y foo