mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
IGN:...
This commit is contained in:
parent
92b6543433
commit
917cbdf348
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user