diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-12-29 08:43:02 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-12-29 08:43:02 +0000 |
commit | 1729478592754a25f41f8b3007d76250427ae2db (patch) | |
tree | d28b47e328ba52d82098bd28ac84e5abee93b48b | |
parent | 09c6ebbd7655b6dd63b35a449330f6b43ec65e5f (diff) | |
download | portage-1729478592754a25f41f8b3007d76250427ae2db.tar.gz portage-1729478592754a25f41f8b3007d76250427ae2db.tar.bz2 portage-1729478592754a25f41f8b3007d76250427ae2db.zip |
Bug #121584 - Make the automatic USERLAND detection code recognize
GNU/kFreeBSD. (trunk r9087)
svn path=/main/branches/2.1.2/; revision=9088
-rw-r--r-- | pym/portage_data.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/pym/portage_data.py b/pym/portage_data.py index 62be82341..deea8940b 100644 --- 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": |