summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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):