projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b7bfaf
)
const: don't set EPREFIX to . when its empty
author
Fabian Groffen
<grobian@gentoo.org>
Fri, 26 Nov 2010 08:09:50 +0000
(09:09 +0100)
committer
Fabian Groffen
<grobian@gentoo.org>
Fri, 26 Nov 2010 08:09:50 +0000
(09:09 +0100)
pym/portage/const.py
patch
|
blob
|
history
diff --git
a/pym/portage/const.py
b/pym/portage/const.py
index 1f8a0efb3afc08a20e82f70624d117a0c095d62a..7f760997c19842fe95d93707ca3a58c7f6aa6449 100644
(file)
--- a/
pym/portage/const.py
+++ b/
pym/portage/const.py
@@
-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