make.globals should not be relative to config_root
authorZac Medico <zmedico@gentoo.org>
Tue, 20 Nov 2007 20:02:50 +0000 (20:02 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 20 Nov 2007 20:02:50 +0000 (20:02 -0000)
because it only contains constants. (trunk r8471)

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

pym/portage.py

index 8d98a3483832be53a15c8ce026c7c6f449cdf325..254ae0b1a5717ce1848bac7d3a6a56cd0022a82b 100644 (file)
@@ -1233,8 +1233,10 @@ class config:
                                self.puseforce_list.append(cpdict)
                        del rawpuseforce
 
+                       # make.globals should not be relative to config_root
+                       # because it only contains constants.
                        try:
-                               self.mygcfg   = getconfig(os.path.join(config_root, "etc", "make.globals"))
+                               self.mygcfg   = getconfig(os.path.join("/etc", "make.globals"))
 
                                if self.mygcfg is None:
                                        self.mygcfg = {}