[Python-checkins] r65946 - sandbox/trunk/setuptools/setuptools/archive_util.py

phillip.eby python-checkins at python.org
Thu Aug 21 20:17:03 CEST 2008


Author: phillip.eby
Date: Thu Aug 21 20:17:03 2008
New Revision: 65946

Log:
Fix for http://bugs.python.org/setuptools/issue16


Modified:
   sandbox/trunk/setuptools/setuptools/archive_util.py

Modified: sandbox/trunk/setuptools/setuptools/archive_util.py
==============================================================================
--- sandbox/trunk/setuptools/setuptools/archive_util.py	(original)
+++ sandbox/trunk/setuptools/setuptools/archive_util.py	Thu Aug 21 20:17:03 2008
@@ -189,7 +189,10 @@
                     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()
@@ -198,3 +201,5 @@
 
 
 extraction_drivers = unpack_directory, unpack_zipfile, unpack_tarfile
+
+


More information about the Python-checkins mailing list