1. Tarek Ziadé
  2. distribute

Commits

Hanno Schlichting  committed 3dbdef2

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.

Comments (0)

Files changed (1)

File setuptools/archive_util.py Modified

View file
  • Ignore whitespace
  • Hide word diff
                     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()