summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 = "/"