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

pym/portage/__init__.py

index 9c9fbc0995162e1a0a94a385868ca3831c206aeb..f4e246c9e94880ee6b670478366b01386a9b9ef2 100644 (file)
@@ -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 = "/"