Sophie

Sophie

distrib > * > 2008.0 > x86_64 > by-pkgid > 63a9c6ccc2888678a2b06844149ab516 > files > 1

python-gobject-2.14.0-2mdv2008.0.src.rpm

--- pygobject-2.11.0/pygtk.py.fixdetection	2006-04-23 14:53:24.000000000 +0200
+++ pygobject-2.11.0/pygtk.py	2006-07-13 09:09:04.000000000 +0200
@@ -57,7 +57,10 @@
             # skip empty directories
             if not os.listdir(pathname):
                 continue
-            
+            # only accept directories containing gtk.py or gobject.so
+            if not glob.glob(os.path.join(pathname, "gtk.py")) and not glob.glob(os.path.join(pathname,"gobject.so")):
+	        continue
+
 	    if not versions.has_key(filename[-3:]):
             	versions[filename[-3:]] = pathname
     return versions