summaryrefslogtreecommitdiff
path: root/apt-pkg/acquire-item.cc
diff options
context:
space:
mode:
authorMartin Pitt <martin.pitt@canonical.com>2010-11-15 11:55:10 +0100
committerMartin Pitt <martin.pitt@canonical.com>2010-11-15 11:55:10 +0100
commitf987e6e1e5648e5a9fa66e0118b0374e9e9c0882 (patch)
tree4b3ef31ce8883a410d80b70990df3419f7bcc12c /apt-pkg/acquire-item.cc
parent4aeda477e7fda33523ebc6a94668085f5047d593 (diff)
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.
Diffstat (limited to 'apt-pkg/acquire-item.cc')
-rw-r--r--apt-pkg/acquire-item.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/apt-pkg/acquire-item.cc b/apt-pkg/acquire-item.cc
index 2c4ce91a0..fdefe9097 100644
--- a/apt-pkg/acquire-item.cc
+++ b/apt-pkg/acquire-item.cc
@@ -672,7 +672,7 @@ string pkgAcqIndex::Custom600Headers()
{
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;
@@ -795,7 +795,7 @@ void pkgAcqIndex::Done(string Message,unsigned long Size,string Hash,
// 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;
@@ -809,7 +809,7 @@ void pkgAcqIndex::Done(string Message,unsigned long Size,string Hash,
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);