Bug #121584 - Make the automatic USERLAND detection code recognize
authorZac Medico <zmedico@gentoo.org>
Sat, 29 Dec 2007 08:38:43 +0000 (08:38 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 29 Dec 2007 08:38:43 +0000 (08:38 -0000)
GNU/kFreeBSD.

svn path=/main/trunk/; revision=9087

pym/portage/data.py

index 958be3ca6a642a575629ea6885091afd978b9bd1..dc72d6fa23fcd7cd2935462980d1b1ab3a60a87e 100644 (file)
@@ -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":