Commit b83d5bd6 authored by Hanno Schlichting's avatar Hanno Schlichting

Protected against failures in tarfile extraction, as we use a private method...

Protected against failures in tarfile extraction, as we use a private method which can raise those. Patch as per PJE's setuptools trunk commit r65946. This closes #10.

--HG--
branch : distribute
extra : rebase_source : c621c9d165d820c32bc08d9a9a168074842e3d66
parent e4ab19ca
......@@ -189,7 +189,10 @@ def unpack_tarfile(filename, extract_dir, progress_filter=default_filter):
if dst:
if dst.endswith(os.sep):
dst = dst[:-1]
tarobj._extract_member(member,dst) # XXX Ugh
try:
tarobj._extract_member(member,dst) # XXX Ugh
except tarfile.ExtractError:
pass # chown/chmod/mkfifo/mknode/makedev failed
return True
finally:
tarobj.close()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment