From b2fd852459a6b9234255644730f48f071ccad64d Mon Sep 17 00:00:00 2001 From: David Kalnischkies Date: Thu, 14 Apr 2016 17:32:17 +0200 Subject: silently skip acquire of empty index files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit There is just no point in taking the time to acquire empty files – especially as it will be tiny non-empty compressed files usually. --- test/integration/test-compressed-indexes | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'test/integration/test-compressed-indexes') 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" -- cgit v1.2.3