From 33ca3692b86bd510988c3d50be0816824225fe18 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 5 Apr 2007 21:29:45 +0000 Subject: [PATCH] Don't force OS detection in the portage.data module. svn path=/main/trunk/; revision=6342 --- pym/portage/data.py | 6 ++---- 1 file 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): -- 2.26.2