From 9a1e0c63c13f3567e75553d2d07dd914d5b81287 Mon Sep 17 00:00:00 2001 From: Chun-wei Fan Date: Fri, 10 Aug 2012 12:41:22 +0800 Subject: [PATCH] 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 --- giscanner/shlibs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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/'. -- 2.34.1