def _decompress(path):
"""
Decompress a .tar.xz file at the given path.
The decompressed data will be located in the same directory as ``path``.
"""
logger.info('Decompressing %s', path)
try:
tar(extract=True, xz=True, verbose=True, file=path,
directory=os.path.dirname(path), _fg=True, _out=sys.stdout,
_err=sys.stderr)
except ErrorReturnCode as e:
raise CommandError(e)
评论列表
文章目录