瀏覽代碼

* test/integration/test-compressed-indexes, test/test-indexes.sh:
- Explicitly disable compressed indexes at the start. This ensures that we
will actually test uncompressed indexes regardless of the internal
default value of Acquire::GzipIndexes.

Martin Pitt 15 年之前
父節點
當前提交
d88a49c830
共有 3 個文件被更改,包括 8 次插入0 次删除
  1. 6 0
      debian/changelog
  2. 1 0
      test/integration/test-compressed-indexes
  3. 1 0
      test/test-indexes.sh

+ 6 - 0
debian/changelog

@@ -21,6 +21,12 @@ apt (0.8.9) UNRELEASED; urgency=low
     - don't install previously not installed providers in a try
     - don't install previously not installed providers in a try
       to statisfy a "Breaks: provides" dependency by upgrade
       to statisfy a "Breaks: provides" dependency by upgrade
 
 
+  [ Martin Pitt ]
+  * test/integration/test-compressed-indexes, test/test-indexes.sh:
+    - Explicitly disable compressed indexes at the start. This ensures that we
+      will actually test uncompressed indexes regardless of the internal
+      default value of Acquire::GzipIndexes.
+
  -- David Kalnischkies <kalnischkies@gmail.com>  Wed, 10 Nov 2010 13:22:39 +0100
  -- David Kalnischkies <kalnischkies@gmail.com>  Wed, 10 Nov 2010 13:22:39 +0100
 
 
 apt (0.8.8) unstable; urgency=low
 apt (0.8.8) unstable; urgency=low

+ 1 - 0
test/integration/test-compressed-indexes

@@ -69,6 +69,7 @@ testrun() {
 	rm -rf testpkg-1.0
 	rm -rf testpkg-1.0
 }
 }
 
 
+echo 'Acquire::GzipIndexes "false";' > rootdir/etc/apt/apt.conf.d/02compressindex
 msgmsg "File: Test with uncompressed indexes"
 msgmsg "File: Test with uncompressed indexes"
 testrun
 testrun
 
 

+ 1 - 0
test/test-indexes.sh

@@ -144,6 +144,7 @@ echo '--- apt-cache show works without indexes'
 ! LC_MESSAGES=C $APT_CACHE show bash 2>&1| grep -q 'E: No packages found'
 ! LC_MESSAGES=C $APT_CACHE show bash 2>&1| grep -q 'E: No packages found'
 
 
 echo "===== uncompressed indexes ====="
 echo "===== uncompressed indexes ====="
+echo 'Acquire::GzipIndexes "false";' > etc/apt/apt.conf.d/02compress-indexes
 check_update
 check_update
 check_indexes
 check_indexes
 check_cache
 check_cache