[gobject-introspection] giscanner/dumper.py: Use os.name instead of os.uname()[0]
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection] giscanner/dumper.py: Use os.name instead of os.uname()[0]
- Date: Sat, 27 Oct 2012 16:26:24 +0000 (UTC)
commit 9a1e0c63c13f3567e75553d2d07dd914d5b81287
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Fri Aug 10 12:41:22 2012 +0800
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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/giscanner/shlibs.py b/giscanner/shlibs.py
index 9579e7e..2ea34c9 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/'.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]