summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage/__init__.py5
1 files changed, 4 insertions, 1 deletions
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):