3 # Regression test for debian bug #749795. Ensure that we fail with
4 # a error if apt-get source foo will download a source that comes
5 # from a unauthenticated repository
9 TESTDIR
=$(readlink -f $(dirname $0))
13 configarchitecture
"i386"
15 # a "normal" package with source and binary
16 buildsimplenativepackage
'foo' 'all' '2.0'
18 setupaptarchive
--no-update
20 APTARCHIVE
=$(readlink -f ./aptarchive)
21 rm -f $APTARCHIVE/dists
/unstable
/*Release
*
23 # update without authenticated InRelease file
24 testwarning aptget update
--allow-insecure-repositories
26 # this all should fail
27 testfailure aptget
install -y foo
28 testfailure aptget
source foo
30 # allow overriding the warning
31 testsuccess aptget
source --allow-unauthenticated foo