diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-11-30 07:21:13 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-11-30 07:21:13 +0000 |
commit | ec5473cd43f0c60455bb5c957cb74c1ef83e0a0e (patch) | |
tree | a5dca9419bd7fde8a2ae35f1a1e09e96682ed427 /pym | |
parent | 1999db08b9a507c996ce78618a9c8e72e0eac773 (diff) | |
download | portage-ec5473cd43f0c60455bb5c957cb74c1ef83e0a0e.tar.gz portage-ec5473cd43f0c60455bb5c957cb74c1ef83e0a0e.tar.bz2 portage-ec5473cd43f0c60455bb5c957cb74c1ef83e0a0e.zip |
Make config.environ() export PKGDIR to the ebuild environment
during the "package" phase since it's currently referenced
there. (trunk r8759)
svn path=/main/branches/2.1.2/; revision=8760
Diffstat (limited to 'pym')
-rw-r--r-- | pym/portage.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pym/portage.py b/pym/portage.py index b3d5baf7f..152cb3e24 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -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): |