X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=daklib%2Ffilewriter.py;h=582453026931e55a52102d2d35d80be10ad3a670;hb=391f5ec09a119131dc846b796ca791f4cecc69e4;hp=0f9d617e0e21f10589c5a9fe69a00d0feeb5f644;hpb=196b3433d455b925758d6a46751a1f0b01617213;p=dak.git diff --git a/daklib/filewriter.py b/daklib/filewriter.py index 0f9d617e..58245302 100644 --- a/daklib/filewriter.py +++ b/daklib/filewriter.py @@ -86,7 +86,7 @@ class BaseFileWriter(object): out_filename = "{0}{1}.new".format(path, suffix) if cmd is not None: with open(in_filename, 'r') as in_fh, open(out_filename, 'w') as out_fh: - check_call(cmd, stdin=in_fh, stdout=out_fh) + check_call(cmd, stdin=in_fh, stdout=out_fh, close_fds=True) self.rename("{0}{1}".format(path, suffix)) def close(self): @@ -145,7 +145,7 @@ class PackagesFileWriter(BaseFileWriter): are strings. Output files are gzip compressed only. ''' flags = { - 'compression': ['xz'], + 'compression': ['gzip', 'xz'], } flags.update(keywords) if flags['debtype'] == 'deb': @@ -161,7 +161,7 @@ class SourcesFileWriter(BaseFileWriter): files are gzip compressed only. ''' flags = { - 'compression': ['xz'], + 'compression': ['gzip', 'xz'], } flags.update(keywords) template = "%(archive)s/dists/%(suite)s/%(component)s/source/Sources"