summaryrefslogtreecommitdiff
path: root/pym
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-12-29 08:38:43 +0000
committerZac Medico <zmedico@gentoo.org>2007-12-29 08:38:43 +0000
commit752c89b6c715771dd3d2d4b22be22b0bae06d3a0 (patch)
tree691bd73e2309017f3a30e5d5f13513da8f720b8e /pym
parentBug #202697 - Add / to the default initial SANDBOX_READ in order to (diff)
downloadportage-idfetch-752c89b6c715771dd3d2d4b22be22b0bae06d3a0.tar.gz
portage-idfetch-752c89b6c715771dd3d2d4b22be22b0bae06d3a0.tar.bz2
portage-idfetch-752c89b6c715771dd3d2d4b22be22b0bae06d3a0.zip
Bug #121584 - Make the automatic USERLAND detection code recognize
GNU/kFreeBSD. svn path=/main/trunk/; revision=9087
Diffstat (limited to 'pym')
-rw-r--r--pym/portage/data.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/pym/portage/data.py b/pym/portage/data.py
index 958be3ca..dc72d6fa 100644
--- a/pym/portage/data.py
+++ b/pym/portage/data.py
@@ -14,7 +14,9 @@ ostype=os.uname()[0]
userland = None
lchown = getattr(os, "lchown", None)
os.environ.setdefault("XARGS", "xargs")
-if ostype=="Linux" or ostype.lower().endswith("gnu"):
+if ostype == "Linux" or \
+ ostype.lower().startswith("gnu") or \
+ ostype.lower().endswith("gnu"):
userland="GNU"
os.environ["XARGS"]="xargs -r"
elif ostype == "Darwin":