projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
09c6ebb
)
Bug #121584 - Make the automatic USERLAND detection code recognize
author
Zac Medico
<zmedico@gentoo.org>
Sat, 29 Dec 2007 08:43:02 +0000
(08:43 -0000)
committer
Zac Medico
<zmedico@gentoo.org>
Sat, 29 Dec 2007 08:43:02 +0000
(08:43 -0000)
GNU/kFreeBSD. (trunk r9087)
svn path=/main/branches/2.1.2/; revision=9088
pym/portage_data.py
patch
|
blob
|
history
diff --git
a/pym/portage_data.py
b/pym/portage_data.py
index 62be82341f72fba2c5c65f9a2fa68354d41c0579..deea8940b65993c6b8f8332ea2967e1538d994b7 100644
(file)
--- a/
pym/portage_data.py
+++ b/
pym/portage_data.py
@@
-14,8
+14,11
@@
bad = create_color_func("BAD")
ostype=os.uname()[0]
-lchown = None
-if ostype=="Linux" or ostype.lower().endswith("gnu"):
+userland = None
+lchown = getattr(os, "lchown", None)
+if ostype == "Linux" or \
+ ostype.lower().startswith("gnu") or \
+ ostype.lower().endswith("gnu"):
userland="GNU"
os.environ["XARGS"]="xargs -r"
elif ostype == "Darwin":