diff options
author | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2011-11-30 15:09:15 +0000 |
---|---|---|
committer | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2011-11-30 15:09:15 +0000 |
commit | 916bec4e534616e9217c83750e4ea75cdfab79fb (patch) | |
tree | 6667c24102ffc55532c7ac264fc5e3ebde087f15 /morphlib/bins.py | |
parent | fab1f2080e734ebe66d162a701eb5747e3262bd2 (diff) | |
download | morph-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.py | 5 |
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]) |