diff options
author | Zac Medico <zmedico@gentoo.org> | 2009-02-22 21:12:03 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2009-02-22 21:12:03 +0000 |
commit | d32372427c9b729b3537bfa9d2774e5ed88b7b4a (patch) | |
tree | da2620e6bb36fa7ae600a20445ca3d5da27b41c1 | |
parent | b17b93c125991cd9846ce1bd8925b7190cf13de6 (diff) | |
download | portage-d32372427c9b729b3537bfa9d2774e5ed88b7b4a.tar.gz portage-d32372427c9b729b3537bfa9d2774e5ed88b7b4a.tar.bz2 portage-d32372427c9b729b3537bfa9d2774e5ed88b7b4a.zip |
Avoid spurious CCACHE_DIR permissions adjustments when fetching with
a temporary PORTAGE_TMPDIR setting (for fetchonly). Thanks to
Marat Radchenko <slonopotamusorama@gmail.com> for reporting.
svn path=/main/trunk/; revision=12685
-rw-r--r-- | pym/portage/__init__.py | 5 |
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): |