]> git.saurik.com Git - apt.git/blobdiff - cmdline/apt-cache.cc
enable FileFd to guess the compressor based on the filename if requested or
[apt.git] / cmdline / apt-cache.cc
index 65d7b0ccdcdb12adf16a4af2a4fb1c9bbde272e5..1cd5080cc44214504a3d46fb3c7036e778a977e7 100644 (file)
@@ -1143,7 +1143,7 @@ bool DisplayRecord(pkgCacheFile &CacheFile, pkgCache::VerIterator V)
       return _error->Error(_("Package file %s is out of sync."),I.FileName());
 
    FileFd PkgF;
-   if (PkgF.Open(I.FileName(), FileFd::ReadOnlyGzip) == false)
+   if (PkgF.Open(I.FileName(), FileFd::ReadOnly, FileFd::Extension) == false)
       return false;
 
    // Read the record