This commit is contained in:
Kovid Goyal 2009-03-18 16:14:56 -07:00
parent 73f3a38211
commit aa1317751d

View File

@ -360,7 +360,7 @@ else:
if hasattr(tar, 'read'): if hasattr(tar, 'read'):
subprocess.check_call(['tar', 'xjf', tar.name, '-C', destdir]) subprocess.check_call(['tar', 'xjf', tar.name, '-C', destdir])
else: else:
tarfile.open(tar, 'r').extractall(destdir) subprocess.check_call(['tar', 'xjf', tar, '-C', destdir])
def main(): def main():
defdir = '/opt/calibre' defdir = '/opt/calibre'