pygobject-2.16.1-fixdetection.patch 713 B

1234567891011121314
  1. diff -p -up pygobject-2.16.1/pygtk.py.fixdetection pygobject-2.16.1/pygtk.py
  2. --- pygobject-2.16.1/pygtk.py.fixdetection 2009-02-20 22:27:14.000000000 +0100
  3. +++ pygobject-2.16.1/pygtk.py 2009-02-23 09:44:55.000000000 +0100
  4. @@ -57,6 +57,9 @@ def _get_available_versions():
  5. # skip empty directories
  6. if not os.listdir(pathname):
  7. continue
  8. + # only accept directories containing gtk.py or gobject.so
  9. + if not glob.glob(os.path.join(pathname, "gtk.py")) and not glob.glob(os.path.join(pathname,"gobject.so")):
  10. + continue
  11. if not versions.has_key(filename[-3:]):
  12. versions[filename[-3:]] = pathname