churchyard / rpms / python2

Forked from rpms/python2 6 years ago
Clone
31c5334
diff --git a/Lib/ctypes/util.py b/Lib/ctypes/util.py
31c5334
index b2c514d..d92af0c 100644
31c5334
--- a/Lib/ctypes/util.py
31c5334
+++ b/Lib/ctypes/util.py
31c5334
@@ -139,7 +139,9 @@ elif os.name == "posix":
31c5334
             finally:
31c5334
                 rv = f.close()
31c5334
             if rv == 10:
31c5334
-                raise OSError, 'objdump command not found'
31c5334
+                return os.path.basename(f) #  This is good for GLibc, I think,
31c5334
+                                           # and a dep on binutils is big (for
31c5334
+                                           # live CDs).
31c5334
             res = re.search(r'\sSONAME\s+([^\s]+)', dump)
31c5334
             if not res:
31c5334
                 return None