]> git.saurik.com Git - apt.git/blobdiff - test/integration/test-bug-605394-versioned-or-groups
Don't download "optional" files not in Release :/.
[apt.git] / test / integration / test-bug-605394-versioned-or-groups
index 0d7ad77f6b52997c16360d78a55b4fcda9681f2b..43f35f79b0276a38718fd9d929c3b8328e5516f3 100755 (executable)
@@ -1,14 +1,15 @@
 #!/bin/sh
 set -e
 
-local TESTDIR=$(readlink -f $(dirname $0))
-. $TESTDIR/framework
+TESTDIR="$(readlink -f "$(dirname "$0")")"
+. "$TESTDIR/framework"
 setupenvironment
 configarchitecture "i386"
 setupaptarchive
 
-testequal "Reading package lists...
+testfailureequal "Reading package lists...
 Building dependency tree...
+Calculating upgrade...
 The following packages will be upgraded:
   php5 php5-cgi
 2 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
@@ -23,3 +24,7 @@ if aptget dist-upgrade --trivial-only -o Debug::pkgProblemResolver=1 -o Debug::p
 else
        msgpass
 fi
+
+# the Packages file includes only MD5
+testfailure aptget dist-upgrade -y
+testsuccess grep 'Insufficient information available to perform this download securely' rootdir/tmp/testfailure.output