summaryrefslogtreecommitdiffstats
path: root/pym/portage/data.py
diff options
context:
space:
mode:
Diffstat (limited to 'pym/portage/data.py')
-rw-r--r--pym/portage/data.py15
1 files changed, 5 insertions, 10 deletions
diff --git a/pym/portage/data.py b/pym/portage/data.py
index 8b89f2e4f..a3dbfb885 100644
--- a/pym/portage/data.py
+++ b/pym/portage/data.py
@@ -10,18 +10,13 @@ from portage.output import create_color_func
bad = create_color_func("BAD")
ostype=os.uname()[0]
-
userland = None
+if ostype == "DragonFly" or ostype.endswith("BSD"):
+ userland = "BSD"
+else:
+ userland = "GNU"
+
lchown = getattr(os, "lchown", None)
-os.environ.setdefault("XARGS", "xargs")
-if ostype == "Linux" or \
- ostype.lower().startswith("gnu") or \
- ostype.lower().endswith("gnu"):
- userland="GNU"
-elif ostype == "Darwin":
- userland="Darwin"
-elif ostype.endswith("BSD") or ostype =="DragonFly":
- userland="BSD"
if not lchown:
try: