From b95f51a5f9db66097e5826a12bd54c78f9c15204 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 7 Jun 2008 22:51:16 +0000 Subject: Validate ROOT from make.conf. svn path=/main/trunk/; revision=10596 --- pym/portage/__init__.py | 2 ++ 1 file changed, 2 insertions(+) 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 = "/" -- cgit v1.2.3-1-g7c22