From: Zac Medico Date: Wed, 11 Mar 2009 06:11:58 +0000 (-0000) Subject: Avoid spurious CCACHE_DIR permissions adjustments when fetching with X-Git-Tag: v2.1.6.8~132 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e08e83dd78ac1b006c3121bd2dc4afcd058148ed;p=portage.git Avoid spurious CCACHE_DIR permissions adjustments when fetching with a temporary PORTAGE_TMPDIR setting (for fetchonly). Thanks to Marat Radchenko for reporting. (trunk r12685) svn path=/main/branches/2.1.6/; revision=12945 --- diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index 0c062f7f2..7ae2bf39f 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -5115,7 +5115,10 @@ def prepare_build_dirs(myroot, mysettings, cleanup): return 1 _prepare_workdir(mysettings) - _prepare_features_dirs(mysettings) + if mysettings.get('EBUILD_PHASE') != 'fetch': + # Avoid spurious permissions adjustments when fetching with + # a temporary PORTAGE_TMPDIR setting (for fetchonly). + _prepare_features_dirs(mysettings) def _adjust_perms_msg(settings, msg):