diff options
author | David Kalnischkies <david@kalnischkies.de> | 2016-04-13 15:28:33 +0200 |
---|---|---|
committer | David Kalnischkies <david@kalnischkies.de> | 2016-04-13 21:33:32 +0200 |
commit | f41352ade22b159c0057f45bcc656dd893d5e74a (patch) | |
tree | c7ce7f0a43655aa4ae639c9029d97404dc729a64 | |
parent | b04f17c269c7177151396e0471701de3a25ff5a1 (diff) |
detect compressed status files on extension again
It handy to be able to point apt at reading a compressed dpkg/status
file in debugging cases, which worked pre-1.1 but somewhere down the
line in the massive refactoring. Restoring this behavior in a central
place for all realfile index files instead of just for the status file.
(This has no effect on index files acquired from an archive – those are
handled by different classes and support compressed files just fine)
-rw-r--r-- | apt-pkg/indexfile.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/indexfile.cc b/apt-pkg/indexfile.cc index 894671bae..a777c38ac 100644 --- a/apt-pkg/indexfile.cc +++ b/apt-pkg/indexfile.cc @@ -310,7 +310,7 @@ std::string pkgDebianIndexRealFile::GetProgressDescription() const } bool pkgDebianIndexRealFile::OpenListFile(FileFd &Pkg, std::string const &FileName)/*{{{*/ { - if (Pkg.Open(FileName, FileFd::ReadOnly, FileFd::None) == false) + if (Pkg.Open(FileName, FileFd::ReadOnly, FileFd::Extension) == false) return _error->Error("Problem opening %s",FileName.c_str()); return true; } |