Avoid spurious CCACHE_DIR permissions adjustments when fetching with
authorZac Medico <zmedico@gentoo.org>
Wed, 11 Mar 2009 06:11:58 +0000 (06:11 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 11 Mar 2009 06:11:58 +0000 (06:11 -0000)
a temporary PORTAGE_TMPDIR setting (for fetchonly). Thanks to
Marat Radchenko <slonopotamusorama@gmail.com> for reporting. (trunk r12685)

svn path=/main/branches/2.1.6/; revision=12945

pym/portage/__init__.py

index 0c062f7f2cae6d0f006d967336e3cadccd9a5038..7ae2bf39f32eae79c6b1db8aaa4bd043d8dfc062 100644 (file)
@@ -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):