]> git.saurik.com Git - apt.git/blobdiff - test/integration/test-bug-596498-trusted-unsigned-repo
close leaking slave fd after setting up pty magic
[apt.git] / test / integration / test-bug-596498-trusted-unsigned-repo
index 06c9c82854e09a198a5aceffa86ef103c7489347..1e5e75b0e836291de2c1cb901fa708abcdd3a45e 100755 (executable)
@@ -12,7 +12,7 @@ setupaptarchive
 
 aptgetupdate() {
        rm -rf rootdir/var/lib/apt/ rootdir/var/cache/apt/*.bin
-       aptget update -qq
+       ${1:-testwarning} aptget update --allow-insecure-repositories
 }
 
 PKGTEXT="$(aptget install cool --assume-no -d | head -n 7)"
@@ -25,7 +25,7 @@ testequal "$PKGTEXT
 Download complete and in download only mode" aptget install cool --assume-no -d --allow-unauthenticated
 
 sed -i -e 's#deb#deb [trusted=no]#' $DEBFILE
-aptgetupdate
+aptgetupdate 'testsuccess'
 
 testequal "$PKGTEXT
 WARNING: The following packages cannot be authenticated!