]> git.saurik.com Git - apt.git/commitdiff
support Acquire::GzipIndexes in dumpavail
authorDavid Kalnischkies <david@kalnischkies.de>
Tue, 10 Jun 2014 12:12:12 +0000 (14:12 +0200)
committerDavid Kalnischkies <david@kalnischkies.de>
Tue, 10 Jun 2014 12:12:12 +0000 (14:12 +0200)
Closes: 742835
cmdline/apt-cache.cc
test/integration/test-compressed-indexes

index 84b775390b31799d785439afbed07f370ae45514..1414617eb4abb7bf4f200444909b556a70039c20 100644 (file)
@@ -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;
       
index 67ca0ba27fa8ecf92847f8d93c0a29a98f90dadd..6671dd75aa7e1ec2d3635046d38135a41031ed13 100755 (executable)
@@ -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