From e08e83dd78ac1b006c3121bd2dc4afcd058148ed Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 11 Mar 2009 06:11:58 +0000 Subject: [PATCH] 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 --- pym/portage/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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): -- 2.26.2