From 73eb89e1481fc9da535b732240fcc726440e66be Mon Sep 17 00:00:00 2001 From: Ansgar Burchardt Date: Sun, 27 Oct 2013 16:28:11 +0100 Subject: [PATCH] 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 2f080e68..2015f14f 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" -- 2.39.5