summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-11-30 07:19:07 +0000
committerZac Medico <zmedico@gentoo.org>2007-11-30 07:19:07 +0000
commit534d882dc9e0a5f75cfa1198f8cdb772900ceb15 (patch)
treee9c022b39a63fdd9034f4d368da8867840ae7ba8 /pym
parentde6237b4c731f56e06e8497ee0bc34899b3549e1 (diff)
downloadportage-534d882dc9e0a5f75cfa1198f8cdb772900ceb15.tar.gz
portage-534d882dc9e0a5f75cfa1198f8cdb772900ceb15.tar.bz2
portage-534d882dc9e0a5f75cfa1198f8cdb772900ceb15.zip
Make config.environ() export PKGDIR to the ebuild environment
during the "package" phase since it's currently referenced there. svn path=/main/trunk/; revision=8759
Diffstat (limited to 'pym')
-rw-r--r--pym/portage/__init__.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py
index 43049fc94..9fff41623 100644
--- a/pym/portage/__init__.py
+++ b/pym/portage/__init__.py
@@ -2561,6 +2561,13 @@ class config(object):
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):