[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[dak/master] daklib/filewriter.py: change default compression to gzip and xz



Change the default compression for Packages and Sources indices to gzip
and xz (from gzip and bzip2). This does not affect existing suites with
indices_compression set in the database.
---
 daklib/filewriter.py |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/daklib/filewriter.py b/daklib/filewriter.py
index 2f080e6..2015f14 100644
--- a/daklib/filewriter.py
+++ b/daklib/filewriter.py
@@ -125,7 +125,7 @@ class PackagesFileWriter(BaseFileWriter):
         are strings.  Output files are gzip compressed only.
         '''
         flags = {
-            'compression': ['gzip', 'bzip2'],
+            'compression': ['gzip', 'xz'],
         }
         flags.update(keywords)
         if flags['debtype'] == 'deb':
@@ -141,7 +141,7 @@ class SourcesFileWriter(BaseFileWriter):
         files are gzip compressed only.
         '''
         flags = {
-            'compression': ['gzip', 'bzip2'],
+            'compression': ['gzip', 'xz'],
         }
         flags.update(keywords)
         template = "%(archive)s/dists/%(suite)s/%(component)s/source/Sources"
-- 
1.7.10.4


Reply to: