summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-06-07 22:51:52 +0000
committerZac Medico <zmedico@gentoo.org>2008-06-07 22:51:52 +0000
commit35f63ed00927d0915f6ba6e1ffe296baa7d7c7a5 (patch)
treec53e3ea09182a550f6aeac77953aacd087221c66
parente2d1d49eff905e4ebb49e8d43955f52cac249cf6 (diff)
downloadportage-35f63ed00927d0915f6ba6e1ffe296baa7d7c7a5.tar.gz
portage-35f63ed00927d0915f6ba6e1ffe296baa7d7c7a5.tar.bz2
portage-35f63ed00927d0915f6ba6e1ffe296baa7d7c7a5.zip
Validate ROOT from make.conf. (trunk r10596)
svn path=/main/branches/2.1.2/; revision=10597
-rw-r--r--pym/portage.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pym/portage.py b/pym/portage.py
index 533010055..f845fc12d 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -1438,6 +1438,8 @@ class config:
# 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 = "/"