From: Joerg Jaspert Date: Sun, 25 Jan 2009 10:58:36 +0000 (+0100) Subject: Hm, i seem to miss a small detail here, lets back out this one hunk and look later... X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=ccb9b7112cbca500aeca033f80640d5cd4998818;p=dak.git Hm, i seem to miss a small detail here, lets back out this one hunk and look later. I DO HATE PDIFFS. I DO Signed-off-by: Joerg Jaspert --- diff --git a/dak/generate_index_diffs.py b/dak/generate_index_diffs.py index 3fe86e11..2b06146b 100755 --- a/dak/generate_index_diffs.py +++ b/dak/generate_index_diffs.py @@ -254,11 +254,8 @@ def genchanges(Options, outdir, oldfile, origfile, maxdiffs = 14): if not os.path.isdir(outdir): os.mkdir(outdir) - cmd = "diff --ed - %s | gzip -c -9 > %s.gz" % (newfile, difffile) - # Do we need shell=True? - w = subprocess.Popen(cmd, shell=True, stdin=subprocess.PIPE).stdin - - # I bet subprocess can do that better than this, but lets do little steps + w = os.popen("diff --ed - %s | gzip -c -9 > %s.gz" % + (newfile, difffile), "w") pipe_file(oldf, w) oldf.close()