diff options
author | David Kalnischkies <kalnischkies@gmail.com> | 2012-04-05 19:02:08 +0200 |
---|---|---|
committer | David Kalnischkies <kalnischkies@gmail.com> | 2012-04-05 19:02:08 +0200 |
commit | 8dd623dbd616ee23dc96a2c99a4415b153dd7290 (patch) | |
tree | e53d6eac0864b2b8f083d288863d34a5d6c3b4f2 /apt-pkg/aptconfiguration.cc | |
parent | d6bbcaad675a746e958d0736ead63bf44c2787ee (diff) | |
download | apt-8dd623dbd616ee23dc96a2c99a4415b153dd7290.tar.gz |
if we have zlib builtin insert add a dummy gzip compressor for FileFD
Diffstat (limited to 'apt-pkg/aptconfiguration.cc')
-rw-r--r-- | apt-pkg/aptconfiguration.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apt-pkg/aptconfiguration.cc b/apt-pkg/aptconfiguration.cc index 2fdb837c5..f00852775 100644 --- a/apt-pkg/aptconfiguration.cc +++ b/apt-pkg/aptconfiguration.cc @@ -477,6 +477,10 @@ const Configuration::getCompressors(bool const Cached) { compressors.push_back(Compressor(".", "", "", "", "", 1)); if (_config->Exists("Dir::Bin::gzip") == false || FileExists(_config->FindFile("Dir::Bin::gzip")) == true) compressors.push_back(Compressor("gzip",".gz","gzip","-9n","-d",2)); +#ifdef HAVE_ZLIB + else + compressors.push_back(Compressor("gzip",".gz","/bin/false", "", "", 2)); +#endif if (_config->Exists("Dir::Bin::bzip2") == false || FileExists(_config->FindFile("Dir::Bin::bzip2")) == true) compressors.push_back(Compressor("bzip2",".bz2","bzip2","-9","-d",3)); if (_config->Exists("Dir::Bin::xz") == false || FileExists(_config->FindFile("Dir::Bin::xz")) == true) |