Add PKGDIR to the config.environ() whitelist so that people's
authorZac Medico <zmedico@gentoo.org>
Sat, 29 Dec 2007 18:21:50 +0000 (18:21 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 29 Dec 2007 18:21:50 +0000 (18:21 -0000)
bashrc's don't break. (trunk r9114)

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

pym/portage.py

index 569bc2ee4c39c7009f7998befbbcf72b5b1dff9d..4df9b64b2dea92afb30ac4a69921d7632cd701c2 100644 (file)
@@ -1009,6 +1009,7 @@ class config:
                "EBUILD_EXIT_STATUS_FILE", "EBUILD_FORCE_TEST",
                "EBUILD_PHASE", "ECLASSDIR", "ECLASS_DEPTH", "EMERGE_FROM",
                "FEATURES", "FILESDIR", "HOME", "PATH",
+               "PKGDIR",
                "PKGUSE", "PKG_LOGDIR", "PKG_TMPDIR",
                "PORTAGE_ACTUAL_DISTDIR", "PORTAGE_ARCHLIST",
                "PORTAGE_BASHRC",
@@ -2630,8 +2631,6 @@ class config:
                        phase = self.get("EBUILD_PHASE")
                        if phase:
                                whitelist = []
-                               if "package" == phase:
-                                       whitelist.append("PKGDIR")
                                if "rpm" == phase:
                                        whitelist.append("RPMDIR")
                                for k in whitelist: