diff options
author | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2013-03-07 10:59:35 +0000 |
---|---|---|
committer | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2013-03-13 15:20:01 +0000 |
commit | 834b129fd7458017f717ffbc1a53f98fc206767f (patch) | |
tree | 0bddaeaaa9bad29ec60d3e21e0e8c7880b6ac2c6 /morphlib | |
parent | 9d7334dc99f85a21ce5e820162a16242f10f3dec (diff) | |
download | morph-834b129fd7458017f717ffbc1a53f98fc206767f.tar.gz |
Fix deploy to not assume artifacts are compressed
Diffstat (limited to 'morphlib')
-rw-r--r-- | morphlib/plugins/deploy_plugin.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/morphlib/plugins/deploy_plugin.py b/morphlib/plugins/deploy_plugin.py index b7d9189a..5bb2d9ec 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( |