From 79e17fcb61c5d83ae050773c39bf3e6414f1b03f Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 25 Nov 2010 09:27:19 -0800 Subject: [PATCH] config.environ: filter calling env only if mycpv --- pym/portage/package/ebuild/config.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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')): -- 2.26.2