summaryrefslogtreecommitdiff
path: root/morphlib/plugins/deploy_plugin.py
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2013-03-07 10:59:35 +0000
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2013-03-11 17:41:47 +0000
commit815e3e0241a86686a472e729ed8c3c9f04ead7dc (patch)
tree9c89eeac7d324272b1b3a028520a5af4ae835f81 /morphlib/plugins/deploy_plugin.py
parent63855bc7f8314b216c8842a03b0dfb3a84f1c770 (diff)
downloadmorph-815e3e0241a86686a472e729ed8c3c9f04ead7dc.tar.gz
Fix deploy to not assume artifacts are compressed
Diffstat (limited to 'morphlib/plugins/deploy_plugin.py')
-rw-r--r--morphlib/plugins/deploy_plugin.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/morphlib/plugins/deploy_plugin.py b/morphlib/plugins/deploy_plugin.py
index f9a345ff..c595cf87 100644
--- a/morphlib/plugins/deploy_plugin.py
+++ b/morphlib/plugins/deploy_plugin.py
@@ -117,8 +117,7 @@ class DeployPlugin(cliapp.Plugin):
f = build_command.lac.get(artifact)
else:
f = build_command.rac.get(artifact)
- ff = gzip.GzipFile(fileobj=f)
- tf = tarfile.TarFile(fileobj=ff)
+ tf = tarfile.open(fileobj=f)
tf.extractall(path=system_tree)
self.app.status(