Grab /etc/profile.env from the target root instead of the configroot.
authorZac Medico <zmedico@gentoo.org>
Wed, 2 Aug 2006 04:42:44 +0000 (04:42 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 2 Aug 2006 04:42:44 +0000 (04:42 -0000)
svn path=/main/trunk/; revision=4085

pym/portage.py

index 921033e270d3362b61a6dff44bf27a7177cbdf53..ff821bcfa79e6663d6858756c151f65ff147652d 100644 (file)
@@ -1020,7 +1020,7 @@ class config:
                        del blacklisted, cfg
 
                        env_d = getconfig(
-                               os.path.join(config_root, "etc", "profile.env"))
+                               os.path.join(target_root, "etc", "profile.env"))
                        # env_d will be None if profile.env doesn't exist.
                        if env_d:
                                self.configdict["env.d"].update(env_d)
@@ -1409,7 +1409,7 @@ class config:
                # We grab the latest profile.env here since it changes frequently.
                self.configdict["env.d"].clear()
                env_d = getconfig(
-                       os.path.join(self["PORTAGE_CONFIGROOT"], "etc", "profile.env"))
+                       os.path.join(self["ROOT"], "etc", "profile.env"))
                if env_d:
                        # env_d will be None if profile.env doesn't exist.
                        self.configdict["env.d"].update(env_d)