X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/b5cabd30cc1be1c6c1ca675ceb359bab577c1905..84a0890e6ef49b5d41a0b9ff0b5a5fe95cca6f3e:/test/test-indexes.sh diff --git a/test/test-indexes.sh b/test/test-indexes.sh index dad3e1fb2..50d54f691 100755 --- a/test/test-indexes.sh +++ b/test/test-indexes.sh @@ -135,7 +135,16 @@ echo "deb-src $TEST_SOURCE" >> etc/apt/sources.list echo "RootDir \"$WORKDIR\";" > apt_config export APT_CONFIG=`pwd`/apt_config +echo "==== no indexes ====" +echo '--- apt-get check works without indexes' +[ -z `$APT_GET check` ] +echo '--- apt-cache policy works without indexes' +$APT_CACHE policy bash >/dev/null +echo '--- apt-cache show works without indexes' +! LC_MESSAGES=C $APT_CACHE show bash 2>&1| grep -q 'E: No packages found' + echo "===== uncompressed indexes =====" +echo 'Acquire::GzipIndexes "false";' > etc/apt/apt.conf.d/02compress-indexes check_update check_indexes check_cache