summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-11-25 09:27:19 -0800
committerZac Medico <zmedico@gentoo.org>2010-11-25 10:10:45 -0800
commitb4b50c119e68b1da58c76a7ae5c8fddcb1a4794f (patch)
treee8e26546d4d65615a9b622536a28bf727298df6b /pym
parent544f66bcfad39f64eee1dac4da507f0cb2ff3217 (diff)
downloadportage-b4b50c119e68b1da58c76a7ae5c8fddcb1a4794f.tar.gz
portage-b4b50c119e68b1da58c76a7ae5c8fddcb1a4794f.tar.bz2
portage-b4b50c119e68b1da58c76a7ae5c8fddcb1a4794f.zip
config.environ: filter calling env only if mycpv
Diffstat (limited to 'pym')
-rw-r--r--pym/portage/package/ebuild/config.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pym/portage/package/ebuild/config.py b/pym/portage/package/ebuild/config.py
index ffe1fe988..d4c69f805 100644
--- a/pym/portage/package/ebuild/config.py
+++ b/pym/portage/package/ebuild/config.py
@@ -2049,7 +2049,8 @@ class config(object):
eapi = self.get('EAPI')
phase = self.get('EBUILD_PHASE')
filter_calling_env = False
- if phase not in ('clean', 'cleanrm', 'depend', 'fetch'):
+ if self.mycpv is not None and \
+ phase not in ('clean', 'cleanrm', 'depend', 'fetch'):
temp_dir = self.get('T')
if temp_dir is not None and \
os.path.exists(os.path.join(temp_dir, 'environment')):