diff options
author | David Kalnischkies <david@kalnischkies.de> | 2016-04-14 22:02:07 +0200 |
---|---|---|
committer | David Kalnischkies <david@kalnischkies.de> | 2016-04-14 22:21:53 +0200 |
commit | b58047e0d8fa8e7d5adca2a24f2ca3ba2596e0ad (patch) | |
tree | 5a0d89cca4db52b17fe8d901bb511a4a97753d16 /test | |
parent | b2fd852459a6b9234255644730f48f071ccad64d (diff) | |
download | apt-b58047e0d8fa8e7d5adca2a24f2ca3ba2596e0ad.tar.gz |
ensure outdated files are dropped without lists-cleanup
Tested via (newly) empty index files, but effects also files dropped
from the repository or an otherwise changed repository config.
Diffstat (limited to 'test')
-rwxr-xr-x | test/integration/test-apt-update-empty-files | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/integration/test-apt-update-empty-files b/test/integration/test-apt-update-empty-files index 42329bb4b..24e40f942 100755 --- a/test/integration/test-apt-update-empty-files +++ b/test/integration/test-apt-update-empty-files @@ -27,3 +27,21 @@ 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' |