Avoid spurious CCACHE_DIR permissions adjustments when fetching with
authorZac Medico <zmedico@gentoo.org>
Sun, 22 Feb 2009 21:12:03 +0000 (21:12 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 22 Feb 2009 21:12:03 +0000 (21:12 -0000)
a temporary PORTAGE_TMPDIR setting (for fetchonly). Thanks to
Marat Radchenko <slonopotamusorama@gmail.com> for reporting.

svn path=/main/trunk/; revision=12685

pym/portage/__init__.py

index c5d4342c204c57d8fc2c2484d4a361f5c557b8cb..dc15495c1fe1a29ec5d0403d12b6ef6ac8ae3cce 100644 (file)
@@ -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):