Validate ROOT from make.conf. (trunk r10596)
authorZac Medico <zmedico@gentoo.org>
Sat, 7 Jun 2008 22:51:52 +0000 (22:51 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 7 Jun 2008 22:51:52 +0000 (22:51 -0000)
svn path=/main/branches/2.1.2/; revision=10597

pym/portage.py

index 5330100554aa0b929035a08eb9f085c4847e50c0..f845fc12d690a4c82b3a1a8ecdc7d889f5ea6dff 100644 (file)
@@ -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 = "/"