]> git.decadent.org.uk Git - dak.git/commitdiff
daklib/filewriter.py: change default compression to gzip and xz
authorAnsgar Burchardt <ansgar@debian.org>
Sun, 27 Oct 2013 15:28:11 +0000 (16:28 +0100)
committerAnsgar Burchardt <ansgar@debian.org>
Sun, 27 Oct 2013 15:28:11 +0000 (16:28 +0100)
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

index 2f080e681b8cc050a0f73f1c317c72e921329db4..2015f14f08b2e6fb593e82f0ec33dcd4625eeec4 100644 (file)
@@ -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"