diff options
author | David Kalnischkies <david@kalnischkies.de> | 2016-04-14 17:32:17 +0200 |
---|---|---|
committer | David Kalnischkies <david@kalnischkies.de> | 2016-04-14 21:56:01 +0200 |
commit | b2fd852459a6b9234255644730f48f071ccad64d (patch) | |
tree | 5ea9c6b0704894b641319fbe35eee281c414a0c2 /test/integration/test-compressed-indexes | |
parent | 479f6fa454cd6ee9e1bc4d9ecda856d34584092e (diff) |
silently skip acquire of empty index files
There is just no point in taking the time to acquire empty files –
especially as it will be tiny non-empty compressed files usually.
Diffstat (limited to 'test/integration/test-compressed-indexes')
-rwxr-xr-x | test/integration/test-compressed-indexes | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/test/integration/test-compressed-indexes b/test/integration/test-compressed-indexes index 573a86511..7ddf2e2e2 100755 --- a/test/integration/test-compressed-indexes +++ b/test/integration/test-compressed-indexes @@ -33,11 +33,9 @@ testrun() { msgtest 'Check if all index files are' "${1:-uncompressed}" if [ "$1" = 'compressed' ]; then ! test -e rootdir/var/lib/apt/lists/*i386_Packages || F=1 - ! test -e rootdir/var/lib/apt/lists/*all_Packages || F=1 ! test -e rootdir/var/lib/apt/lists/*_Sources || F=1 ! test -e rootdir/var/lib/apt/lists/*_Translation-en || F=1 test -e rootdir/var/lib/apt/lists/*i386_Packages.$LOWCOSTEXT || F=1 - test -e rootdir/var/lib/apt/lists/*all_Packages.$LOWCOSTEXT || F=1 test -e rootdir/var/lib/apt/lists/*_Sources.$LOWCOSTEXT || F=1 test -e rootdir/var/lib/apt/lists/*_Translation-en.$LOWCOSTEXT || F=1 # there is no point in trying pdiff if we have compressed indexes @@ -47,11 +45,9 @@ testrun() { # clear the faked pdiff indexes so the glob below works rm -f rootdir/var/lib/apt/lists/*diff_Index test -e rootdir/var/lib/apt/lists/*i386_Packages || F=1 - test -e rootdir/var/lib/apt/lists/*all_Packages || F=1 test -e rootdir/var/lib/apt/lists/*_Sources || F=1 test -e rootdir/var/lib/apt/lists/*_Translation-en || F=1 ! test -e rootdir/var/lib/apt/lists/*i386_Packages.* || F=1 - ! test -e rootdir/var/lib/apt/lists/*all_Packages.* || F=1 ! test -e rootdir/var/lib/apt/lists/*_Sources.* || F=1 ! test -e rootdir/var/lib/apt/lists/*_Translation-en.* || F=1 fi @@ -112,6 +108,7 @@ testovermethod() { INDCOMP='uncompressed' else INDCOMP='compressed' + echo 'APT::Compressor::lz4::Name "lz4";' >> rootdir/etc/apt/apt.conf.d/02compressindex fi msgmsg "${1}: ${COMPRESSOR}: Test with $INDCOMP indexes gzip=$INDEX" |