summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2012-11-16 12:07:45 +0000
committerSam Thursfield <sam.thursfield@codethink.co.uk>2012-11-16 12:07:45 +0000
commitc0141e85a02b2d54b0d97b380b0054e1a9e08870 (patch)
treea7950f38a1e856e69e43825436a2a97e048a1d67
parentd4c7e23ad7373f671460a63d2250073d5a35feba (diff)
parentb316ade347e389f2bec0bcc708ba5bf9a540bfdd (diff)
downloadmorph-c0141e85a02b2d54b0d97b380b0054e1a9e08870.tar.gz
Merge branch 'samthursfield/remove-gzip-file-header'
Reviewed-By: Lars Wirzenius <lars.wirzenius@codethink.co.uk>
-rw-r--r--morphlib/builder2.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/morphlib/builder2.py b/morphlib/builder2.py
index 674cbb17..c7d25e1a 100644
--- a/morphlib/builder2.py
+++ b/morphlib/builder2.py
@@ -730,7 +730,8 @@ class DiskImageBuilder(SystemKindBuilder): # pragma: no cover
chatty=True)
with os.fdopen(image_file_fd, "rb") as ifh:
ofh = gzip.GzipFile(
- fileobj=handle, mode="wb", compresslevel=1)
+ fileobj=handle, filename='', mode="wb",
+ compresslevel=1)
shutil.copyfileobj(ifh, ofh, 1024 * 1024)
ofh.close()