const: don't set EPREFIX to . when its empty
authorFabian Groffen <grobian@gentoo.org>
Fri, 26 Nov 2010 08:09:50 +0000 (09:09 +0100)
committerFabian Groffen <grobian@gentoo.org>
Fri, 26 Nov 2010 08:09:50 +0000 (09:09 +0100)
pym/portage/const.py

index 1f8a0efb3afc08a20e82f70624d117a0c095d62a..7f760997c19842fe95d93707ca3a58c7f6aa6449 100644 (file)
@@ -13,7 +13,10 @@ import os
 BPREFIX = EPREFIX
 # pick up EPREFIX from the environment if set
 if "EPREFIX" in os.environ:
-       EPREFIX = os.path.normpath(os.environ["EPREFIX"])
+       if os.environ["EPREFIX"] != "":
+               EPREFIX = os.path.normpath(os.environ["EPREFIX"])
+       else
+               EPREFIX = os.environ["EPREFIX"]
 
 # ===========================================================================
 # START OF CONSTANTS -- START OF CONSTANTS -- START OF CONSTANTS -- START OF