mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
IGN:...
This commit is contained in:
parent
a89532625a
commit
73f3a38211
@ -268,7 +268,7 @@ def traverse(path_to_html_file, max_levels=sys.maxint, verbose=0, encoding=None)
|
|||||||
except IgnoreFile, err:
|
except IgnoreFile, err:
|
||||||
rejects.append(link)
|
rejects.append(link)
|
||||||
if not err.doesnt_exist or verbose > 1:
|
if not err.doesnt_exist or verbose > 1:
|
||||||
print str(err)
|
print repr(err)
|
||||||
for link in rejects:
|
for link in rejects:
|
||||||
hf.links.remove(link)
|
hf.links.remove(link)
|
||||||
|
|
||||||
|
@ -358,10 +358,7 @@ else:
|
|||||||
def extract_tarball(tar, destdir):
|
def extract_tarball(tar, destdir):
|
||||||
print 'Extracting application files...'
|
print 'Extracting application files...'
|
||||||
if hasattr(tar, 'read'):
|
if hasattr(tar, 'read'):
|
||||||
try:
|
subprocess.check_call(['tar', 'xjf', tar.name, '-C', destdir])
|
||||||
tarfile.open(fileobj=tar, mode='r').extractall(destdir)
|
|
||||||
except: # tarfile.py on Fedora 9 is buggy
|
|
||||||
subprocess.check_call(['tar', 'xjf', tar.name, '-C', destdir])
|
|
||||||
else:
|
else:
|
||||||
tarfile.open(tar, 'r').extractall(destdir)
|
tarfile.open(tar, 'r').extractall(destdir)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user