summaryrefslogtreecommitdiff
path: root/test/integration/test-apt-get-update-unauth-warning
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2015-11-05 01:51:44 +0100
committerDavid Kalnischkies <david@kalnischkies.de>2015-11-05 12:21:33 +0100
commitf01f5d911d6a9731893865bb1ec617c5038add3e (patch)
tree8701432e7810433218ec1a7d74fdca5076295a37 /test/integration/test-apt-get-update-unauth-warning
parent4453cfdcf42f7fe6859bb0fc6b310a2a391bee77 (diff)
"support" unsigned Release files without hashes again
This 'ignores' the component Release files you can find in Debian alongside the binary-* directories, which isn't exactly a common usecase, but it worked before, so lets support it again as this isn't worse than a valid Release file which is unsigned. Git-Dch: Ignore
Diffstat (limited to 'test/integration/test-apt-get-update-unauth-warning')
-rwxr-xr-xtest/integration/test-apt-get-update-unauth-warning9
1 files changed, 7 insertions, 2 deletions
diff --git a/test/integration/test-apt-get-update-unauth-warning b/test/integration/test-apt-get-update-unauth-warning
index b247c1ba9..d71569827 100755
--- a/test/integration/test-apt-get-update-unauth-warning
+++ b/test/integration/test-apt-get-update-unauth-warning
@@ -11,16 +11,21 @@ setupenvironment
configarchitecture "i386"
configcompression '.' 'gz'
+echo 'Acquire::Progress::Ignore::ShowErrorText "false";' > rootdir/etc/apt/apt.conf.d/99show-no-ignore-errors.conf
+
# a "normal" package with source and binary
buildsimplenativepackage 'foo' 'all' '2.0'
setupaptarchive --no-update
APTARCHIVE="$(readlink -f ./aptarchive)"
-find "$APTARCHIVE/dists/unstable" -name '*Release*' -delete
+find "$APTARCHIVE/dists/unstable" \( -name 'InRelease' -o -name 'Release.gpg' \) -delete
+sed -i -n '/^SHA1:$/q;p' "${APTARCHIVE}/dists/unstable/Release"
+testwarning aptget update
-echo 'Acquire::Progress::Ignore::ShowErrorText "false";' > rootdir/etc/apt/apt.conf.d/99show-no-ignore-errors.conf
+rm -rf rootdir/var/lib/apt/lists
+find "$APTARCHIVE/dists/unstable" -name '*Release*' -delete
# update without authenticated files leads to warning
testfailureequal "Get:1 file:$APTARCHIVE unstable InRelease
Ign:1 file:$APTARCHIVE unstable InRelease