From 815e3e0241a86686a472e729ed8c3c9f04ead7dc Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Thu, 7 Mar 2013 10:59:35 +0000 Subject: Fix deploy to not assume artifacts are compressed --- morphlib/plugins/deploy_plugin.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'morphlib/plugins/deploy_plugin.py') 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( -- cgit v1.2.1