From: Zac Medico Date: Thu, 5 Apr 2007 21:29:45 +0000 (-0000) Subject: Don't force OS detection in the portage.data module. X-Git-Tag: v2.2_pre1~1512 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=33ca3692b86bd510988c3d50be0816824225fe18;p=portage.git Don't force OS detection in the portage.data module. svn path=/main/trunk/; revision=6342 --- 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):