From 42b91e364bd6ea1320635af75a587fb10a25ea89 Mon Sep 17 00:00:00 2001 From: Fabian Groffen Date: Tue, 1 Jan 2008 22:06:30 +0000 Subject: [PATCH] Python doesn't like me, and I don't like Python svn path=/main/branches/prefix/; revision=9133 --- pym/portage/data.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pym/portage/data.py b/pym/portage/data.py index b869e2efd..e7da2e521 100644 --- a/pym/portage/data.py +++ b/pym/portage/data.py @@ -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" -- 2.26.2