Python doesn't like me, and I don't like Python
authorFabian Groffen <grobian@gentoo.org>
Tue, 1 Jan 2008 22:06:30 +0000 (22:06 -0000)
committerFabian Groffen <grobian@gentoo.org>
Tue, 1 Jan 2008 22:06:30 +0000 (22:06 -0000)
svn path=/main/branches/prefix/; revision=9133

pym/portage/data.py

index b869e2efdfeaa094724453880501684d56cfe7c8..e7da2e5213e3030ebc5ba1e864cafd3f1dc26cb4 100644 (file)
@@ -5,7 +5,7 @@
 
 import os, sys, pwd, grp
 from portage.util import writemsg
-from portage.const import rootuid, portageuser, portagegroup
+from portage.const import rootuid, portageuser, portagegroup, EPREFIX
 from portage.output import green,red
 from portage.output import create_color_func
 bad = create_color_func("BAD")
@@ -15,8 +15,7 @@ userland = None
 # Prefix always has USERLAND=GNU, even on
 # FreeBSD, OpenBSD and Darwin (thank the lord!).
 # Hopefully this entire USERLAND hack can go once
-if portage.const.EPREFIX == "" and
-       (ostype == "DragonFly" or ostype.endswith("BSD")):
+if EPREFIX == "" and (ostype == "DragonFly" or ostype.endswith("BSD")):
        userland = "BSD"
 else:
        userland = "GNU"