summaryrefslogtreecommitdiff
path: root/apt-pkg/deb/debrecords.cc
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2011-12-10 19:31:36 +0100
committerDavid Kalnischkies <kalnischkies@gmail.com>2011-12-10 19:31:36 +0100
commit468720c59fcf48b20332cdb7b601b2b0d7cbbfbb (patch)
treef01d2dcf5827a86706567387c1a0af50c4cf21dd /apt-pkg/deb/debrecords.cc
parent8e16d8c39447809506a8cd8e6f88cae3c168f82d (diff)
enable FileFd to guess the compressor based on the filename if requested or
to search for compressed silbings of the given filename and use this guessing instead of hardcoding Gzip compression
Diffstat (limited to 'apt-pkg/deb/debrecords.cc')
-rw-r--r--apt-pkg/deb/debrecords.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/deb/debrecords.cc b/apt-pkg/deb/debrecords.cc
index 1afa7b74d..184c07c33 100644
--- a/apt-pkg/deb/debrecords.cc
+++ b/apt-pkg/deb/debrecords.cc
@@ -25,7 +25,7 @@ using std::string;
// ---------------------------------------------------------------------
/* */
debRecordParser::debRecordParser(string FileName,pkgCache &Cache) :
- File(FileName,FileFd::ReadOnlyGzip),
+ File(FileName,FileFd::ReadOnly, FileFd::Extension),
Tags(&File, std::max(Cache.Head().MaxVerFileSize,
Cache.Head().MaxDescFileSize) + 200)
{