Просмотр исходного кода

support Acquire::GzipIndexes in dumpavail

Closes: 742835
David Kalnischkies лет назад: 12
Родитель
Сommit
4dde2b4285
2 измененных файлов с 3 добавлено и 1 удалено
  1. 1 1
      cmdline/apt-cache.cc
  2. 2 0
      test/integration/test-compressed-indexes

+ 1 - 1
cmdline/apt-cache.cc

@@ -507,7 +507,7 @@ static bool DumpAvail(CommandLine &)
 	 break;
       }
 
-      FileFd PkgF(File.FileName(),FileFd::ReadOnly);
+      FileFd PkgF(File.FileName(),FileFd::ReadOnly, FileFd::Extension);
       if (_error->PendingError() == true)
 	 break;
       

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

@@ -67,6 +67,8 @@ testrun() {
 	msgtest "\tdsc file is present"; testsuccess --nomsg test -f testpkg_1.0.dsc
 	msgtest "\tdirectory is present"; testsuccess --nomsg test -d testpkg-1.0
 	rm -rf testpkg-1.0
+	testequal "$(aptcache show testpkg -o Acquire::Languages=none)
+" aptcache dumpavail
 }
 
 echo 'Acquire::GzipIndexes "false";' > rootdir/etc/apt/apt.conf.d/02compressindex