summaryrefslogtreecommitdiff
path: root/morphlib/bins.py
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2011-11-30 15:09:15 +0000
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2011-11-30 15:09:15 +0000
commit916bec4e534616e9217c83750e4ea75cdfab79fb (patch)
tree6667c24102ffc55532c7ac264fc5e3ebde087f15 /morphlib/bins.py
parentfab1f2080e734ebe66d162a701eb5747e3262bd2 (diff)
downloadmorph-916bec4e534616e9217c83750e4ea75cdfab79fb.tar.gz
use system tar instead of Python's tarfile library to extract tarballs
Diffstat (limited to 'morphlib/bins.py')
-rw-r--r--morphlib/bins.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/morphlib/bins.py b/morphlib/bins.py
index a2562d43..9dd52fef 100644
--- a/morphlib/bins.py
+++ b/morphlib/bins.py
@@ -108,7 +108,6 @@ def unpack_binary(filename, dirname):
'''
logging.debug('Unpacking %s into %s' % (filename, dirname))
- tar = tarfile.open(name=filename)
- tar.extractall(path=dirname)
- tar.close()
+ ex = morphlib.execute.Execute(dirname, msg=lambda s: None)
+ ex.runv(['tar', '-xvf', filename])