[gobject-introspection] Unbreak giscanner on OpenBSD.



commit 49b80bb567115b95c1051d2f01da7679e4e08154
Author: Jasper Lievisse Adriaanse <jasper humppa nl>
Date:   Thu Mar 28 11:49:01 2013 +0100

    Unbreak giscanner on OpenBSD.
    
    Commit 9a1e0c63c13f3567e75553d2d07dd914d5b81287 broke this as
    os.name doesn't return 'OpenBSD', but 'posix'
    
    https://bugzilla.gnome.org/show_bug.cgi?id=696765

 giscanner/shlibs.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/giscanner/shlibs.py b/giscanner/shlibs.py
index 6c583a4..4f622db 100644
--- a/giscanner/shlibs.py
+++ b/giscanner/shlibs.py
@@ -68,7 +68,7 @@ def _resolve_non_libtool(options, binary, libraries):
     if not libraries:
         return []
 
-    if os.name == 'OpenBSD':
+    if platform.platform().startswith('OpenBSD'):
         # Hack for OpenBSD when using the ports' libtool which uses slightly
         # different directories to store the libraries in. So rewite binary.args[0]
         # by inserting '.libs/'.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]