This commit is contained in:
Kovid Goyal 2008-07-31 16:46:44 -07:00
parent 92b6543433
commit 917cbdf348

View File

@ -219,7 +219,7 @@ def extract_tarball(tar, destdir):
try:
tarfile.open(fileobj=tar, mode='r').extractall(destdir)
except: # tarfile.py on Fedora 9 is buggy
subprocess.check_call(['tar', 'xvjf', tar.name, destdir])
subprocess.check_call(['tar', 'xvjf', tar.name, '-C', destdir])
else:
tarfile.open(tar, 'r').extractall(destdir)