Don't force OS detection in the portage.data module.
authorZac Medico <zmedico@gentoo.org>
Thu, 5 Apr 2007 21:29:45 +0000 (21:29 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 5 Apr 2007 21:29:45 +0000 (21:29 -0000)
svn path=/main/trunk/; revision=6342

pym/portage/data.py

index fbd419b28119e374119d527c94209e40e8c2eac2..1ef417fc54ce15b954b204fdfbf6de32a6c79abb 100644 (file)
@@ -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):