summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-04-05 21:29:45 +0000
committerZac Medico <zmedico@gentoo.org>2007-04-05 21:29:45 +0000
commit33ca3692b86bd510988c3d50be0816824225fe18 (patch)
treea9985b4292344c8598b5f558e3a4f3be0078c06a
parent6c193ece694dc93eb6948f40a135457c9c85d0d6 (diff)
downloadportage-33ca3692b86bd510988c3d50be0816824225fe18.tar.gz
portage-33ca3692b86bd510988c3d50be0816824225fe18.tar.bz2
portage-33ca3692b86bd510988c3d50be0816824225fe18.zip
Don't force OS detection in the portage.data module.
svn path=/main/trunk/; revision=6342
-rw-r--r--pym/portage/data.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/pym/portage/data.py b/pym/portage/data.py
index fbd419b28..1ef417fc5 100644
--- a/pym/portage/data.py
+++ b/pym/portage/data.py
@@ -14,7 +14,8 @@ bad = create_color_func("BAD")
ostype=os.uname()[0]
-lchown = None
+userland = None
+lchown = getattr(os, "lchown")
if ostype=="Linux" or ostype.lower().endswith("gnu"):
userland="GNU"
os.environ["XARGS"]="xargs -r"
@@ -26,9 +27,6 @@ elif ostype == "Darwin":
elif ostype.endswith("BSD") or ostype =="DragonFly":
userland="BSD"
os.environ["XARGS"]="xargs"
-else:
- writemsg(red("Operating system")+" \""+ostype+"\" "+red("currently unsupported. Exiting.")+"\n")
- sys.exit(1)
if not lchown:
if "lchown" in dir(os):