diff options
author | Chun-wei Fan <fanchunwei@src.gnome.org> | 2012-08-10 12:41:22 +0800 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2012-10-27 12:06:09 -0400 |
commit | 9a1e0c63c13f3567e75553d2d07dd914d5b81287 (patch) | |
tree | 0656e031986df153ac18ca31e0e742b0a1e49a2f /giscanner/shlibs.py | |
parent | af578e81c861cf31f494fc830ba02ca41d7c7613 (diff) | |
download | gobject-introspection-9a1e0c63c13f3567e75553d2d07dd914d5b81287.tar.gz |
giscanner/dumper.py: Use os.name instead of os.uname()[0]
os.uname is not available universally, so use something that exists
universally.
https://bugzilla.gnome.org/show_bug.cgi?id=681820
Diffstat (limited to 'giscanner/shlibs.py')
-rw-r--r-- | giscanner/shlibs.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/giscanner/shlibs.py b/giscanner/shlibs.py index 9579e7e6..2ea34c91 100644 --- a/giscanner/shlibs.py +++ b/giscanner/shlibs.py @@ -69,7 +69,7 @@ def _resolve_non_libtool(options, binary, libraries): if not libraries: return [] - if os.uname()[0] == 'OpenBSD': + if os.name == '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/'. |