]> git.saurik.com Git - apt.git/blobdiff - test/integration/test-bug-841874-warning-for-mismatching-distribution
don't warn if untransformed distribution matches
[apt.git] / test / integration / test-bug-841874-warning-for-mismatching-distribution
index 9b9f1982e5b1508cf4ce71a06764c0f510c314c0..7502eefc38e959c55bf21f51cc32f35aecdbdcf3 100755 (executable)
@@ -36,3 +36,14 @@ testfailure apt show foo
 ln -s "${APTARCHIVE}/dists/testing" "${APTARCHIVE}/dists/stretch/updates"
 testsuccess apt update
 testsuccess apt show foo
+
+# … but only if needed
+rm -rf rootdir/var/lib/apt/lists
+sed -i -e 's#stretch#buster#g' rootdir/etc/apt/sources.list.d/*
+sed -i -e 's#^Codename: stretch$#Codename: buster/updates#g' $(find ./aptarchive -name 'Release')
+signreleasefiles
+testfailure apt update
+testfailure apt show foo
+ln -s "${APTARCHIVE}/dists/testing" "${APTARCHIVE}/dists/buster"
+testsuccess apt update
+testsuccess apt show foo