From: Zac Medico Date: Thu, 25 Nov 2010 17:27:19 +0000 (-0800) Subject: config.environ: filter calling env only if mycpv X-Git-Tag: v2.2.0_alpha6~14 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=79e17fcb61c5d83ae050773c39bf3e6414f1b03f;p=portage.git config.environ: filter calling env only if mycpv --- 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')):