summaryrefslogtreecommitdiffstats
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 09:27:19 -0800
commit79e17fcb61c5d83ae050773c39bf3e6414f1b03f (patch)
tree071b827103f9fef2bb9dbfbf200946ae1b9f4351
parent1530b3ae365005c40afe0a08860641b1d4b53c92 (diff)
downloadportage-79e17fcb61c5d83ae050773c39bf3e6414f1b03f.tar.gz
portage-79e17fcb61c5d83ae050773c39bf3e6414f1b03f.tar.bz2
portage-79e17fcb61c5d83ae050773c39bf3e6414f1b03f.zip
config.environ: filter calling env only if mycpv
-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 043a310b8..3c66d8047 100644
--- a/pym/portage/package/ebuild/config.py
+++ b/pym/portage/package/ebuild/config.py
@@ -2008,7 +2008,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')):