From d32372427c9b729b3537bfa9d2774e5ed88b7b4a Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 22 Feb 2009 21:12:03 +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. svn path=/main/trunk/; revision=12685 --- 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 c5d4342c2..dc15495c1 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -5125,7 +5125,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