X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/479f6fa454cd6ee9e1bc4d9ecda856d34584092e..105503b4b470c124bc0c271bd8a50e25ecbe9133:/test/integration/test-apt-update-empty-files diff --git a/test/integration/test-apt-update-empty-files b/test/integration/test-apt-update-empty-files index e4f6d62bd..24e40f942 100755 --- a/test/integration/test-apt-update-empty-files +++ b/test/integration/test-apt-update-empty-files @@ -17,9 +17,31 @@ msgmsg 'Test with file' rm -rf rootdir/var/lib/apt/lists testsuccess apt update -o Debug::pkgAcquire::Worker=1 cp rootdir/tmp/testsuccess.output apt.output -testsuccess grep '%0aAlt-Filename:%20/.*/Sources%0a' apt.output +testfailure grep '%0a\(Alt\)\?Filename:%20/.*/Sources\(\.gz\)\?%0a' apt.output +testempty find rootdir/var/lib/apt/lists -name '*_Sources' msgmsg 'Test with http' changetowebserver rm -rf rootdir/var/lib/apt/lists testsuccess apt update -o Debug::pkgAcquire::Worker=1 +cp rootdir/tmp/testsuccess.output apt.output +testfailure grep 'http:600.*Sources' apt.output +testempty find rootdir/var/lib/apt/lists -name '*_Sources' + +msgmsg 'Test lists-cleanup on newly empty' +rm -rf rootdir/var/lib/apt/lists +insertsource 'unstable' 'apt' 'any' '1' +compressfile aptarchive/dists/unstable/main/source/Sources +generatereleasefiles +signreleasefiles +testsuccess apt update -o Debug::pkgAcquire::Worker=1 +cp rootdir/tmp/testsuccess.output apt.output +testsuccess grep 'http:600.*Sources' apt.output +echo -n > aptarchive/dists/unstable/main/source/Sources +compressfile aptarchive/dists/unstable/main/source/Sources +generatereleasefiles 'now + 1hour' +signreleasefiles +testsuccess apt update -o Debug::pkgAcquire::Worker=1 -o APT::Get::List-Cleanup=0 -o Debug::Acquire::Transaction=1 +cp rootdir/tmp/testsuccess.output apt.output +testfailure grep 'http:600.*Sources' apt.output +testempty find rootdir/var/lib/apt/lists -name '*_Sources'