From 35f63ed00927d0915f6ba6e1ffe296baa7d7c7a5 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 7 Jun 2008 22:51:52 +0000 Subject: [PATCH] Validate ROOT from make.conf. (trunk r10596) svn path=/main/branches/2.1.2/; revision=10597 --- pym/portage.py | 2 ++ 1 file changed, 2 insertions(+) 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 = "/" -- 2.26.2