As requested by wolf31o2, use the ROOT setting from make.conf as long as
authorZac Medico <zmedico@gentoo.org>
Fri, 28 Mar 2008 11:47:59 +0000 (11:47 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 28 Mar 2008 11:47:59 +0000 (11:47 -0000)
it's not overridden by the calling environment. (trunk r9439)

svn path=/main/branches/2.1.2/; revision=9549

pym/portage.py

index 40156ca344e372bc17483e807e78280db6fe10b4..25789db8073b24707c2f0af12cb45a3c238f57dc 100644 (file)
@@ -1392,13 +1392,8 @@ class config:
                                self.mygcfg.pop(k, None)
                        
                        # Allow ROOT setting to come from make.conf if it's not overridden
-                       # by the constructor argument (from the calling environment).  As a
-                       # special exception for a very common use case, config_root == "/"
-                       # implies that ROOT in make.conf should be ignored.  That way, the
-                       # user can chroot into $ROOT and the ROOT setting in make.conf will
-                       # be automatically ignored (unless config_root is other than "/").
-                       if config_root != "/" and \
-                               target_root is None and "ROOT" in self.mygcfg:
+                       # by the constructor argument (from the calling environment).
+                       if target_root is None and "ROOT" in self.mygcfg:
                                target_root = self.mygcfg["ROOT"]
                        
                        self.configlist.append(self.mygcfg)