This commit is contained in:
Kovid Goyal 2009-03-18 15:33:44 -07:00
parent a89532625a
commit 73f3a38211
2 changed files with 2 additions and 5 deletions

View File

@ -268,7 +268,7 @@ def traverse(path_to_html_file, max_levels=sys.maxint, verbose=0, encoding=None)
except IgnoreFile, err:
rejects.append(link)
if not err.doesnt_exist or verbose > 1:
print str(err)
print repr(err)
for link in rejects:
hf.links.remove(link)

View File

@ -358,9 +358,6 @@ else:
def extract_tarball(tar, destdir):
print 'Extracting application files...'
if hasattr(tar, 'read'):
try:
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:
tarfile.open(tar, 'r').extractall(destdir)