{
string Final = _config->FindDir("Dir::State::lists");
Final += URItoFileName(RealURI);
- if (_config->FindB("Acquire::GzipIndexes",false))
+ if (_config->FindB("Acquire::GzipIndexes",true))
Final += ".gz";
struct stat Buf;
// The files timestamp matches
if (StringToBool(LookupTag(Message,"IMS-Hit"),false) == true) {
- if (_config->FindB("Acquire::GzipIndexes",false) && compExt == "gz")
+ if (_config->FindB("Acquire::GzipIndexes",true) && compExt == "gz")
// Update DestFile for .gz suffix so that the clean operation keeps it
DestFile += ".gz";
return;
string decompProg;
// If we enable compressed indexes and already have gzip, keep it
- if (_config->FindB("Acquire::GzipIndexes",false) && compExt == "gz" && !Local) {
+ if (_config->FindB("Acquire::GzipIndexes",true) && compExt == "gz" && !Local) {
string FinalFile = _config->FindDir("Dir::State::lists");
FinalFile += URItoFileName(RealURI) + ".gz";
Rename(DestFile,FinalFile);
- Explicitly disable compressed indexes at the start. This ensures that we
will actually test uncompressed indexes regardless of the internal
default value of Acquire::GzipIndexes.
+ * apt-pkg/acquire-item.cc: Set Acquire::GzipIndexes to "true" by default, to
+ store compressed indexes. This feature is now mature enough for general
+ consumption. Update doc/apt.conf.5.xml accordingly.
-- Martin Pitt <martin.pitt@ubuntu.com> Fri, 12 Nov 2010 16:53:31 +0100
When downloading <literal>gzip</literal> compressed indexes (Packages, Sources, or
Translations), keep them gzip compressed locally instead of unpacking
them. This saves quite a lot of disk space at the expense of more CPU
- requirements when building the local package caches. False by default.
+ requirements when building the local package caches. True by default.
</para></listitem>
</varlistentry>