summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-06-07 22:51:16 +0000
committerZac Medico <zmedico@gentoo.org>2008-06-07 22:51:16 +0000
commitb95f51a5f9db66097e5826a12bd54c78f9c15204 (patch)
treeeb52bd2a912a5be52b7b29fbeebad8eabb540ed7 /pym
parent2a3eb60896e620125c409076a7c032e19617b76d (diff)
downloadportage-b95f51a5f9db66097e5826a12bd54c78f9c15204.tar.gz
portage-b95f51a5f9db66097e5826a12bd54c78f9c15204.tar.bz2
portage-b95f51a5f9db66097e5826a12bd54c78f9c15204.zip
Validate ROOT from make.conf.
svn path=/main/trunk/; revision=10596
Diffstat (limited to 'pym')
-rw-r--r--pym/portage/__init__.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py
index 9c9fbc099..f4e246c9e 100644
--- a/pym/portage/__init__.py
+++ b/pym/portage/__init__.py
@@ -1279,6 +1279,8 @@ class config(object):
# by the constructor argument (from the calling environment).
if target_root is None and "ROOT" in make_conf:
target_root = make_conf["ROOT"]
+ if not target_root.strip():
+ target_root = None
if target_root is None:
target_root = "/"