Make config.environ() export PKGDIR to the ebuild environment
authorZac Medico <zmedico@gentoo.org>
Fri, 30 Nov 2007 07:21:13 +0000 (07:21 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 30 Nov 2007 07:21:13 +0000 (07:21 -0000)
during the "package" phase since it's currently referenced
there. (trunk r8759)

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

pym/portage.py

index b3d5baf7fb06b574bf9c270d9f32f4bacce416aa..152cb3e2424488e9f1151c3c6fadab49e0bef652 100644 (file)
@@ -2545,6 +2545,13 @@ class config:
                        writemsg("*** HOME not set. Setting to "+mydict["BUILD_PREFIX"]+"\n")
                        mydict["HOME"]=mydict["BUILD_PREFIX"][:]
 
+               if filter_calling_env:
+                       if "package" == self.get("EBUILD_PHASE"):
+                               for k in ("PKGDIR", ):
+                                       v = self.get(k)
+                                       if v is not None:
+                                               mydict[k] = v
+
                return mydict
 
        def thirdpartymirrors(self):