Always invalidate results from _userpriv_test_write_file_cache when
authorZac Medico <zmedico@gentoo.org>
Thu, 31 Jul 2008 11:44:28 +0000 (11:44 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 31 Jul 2008 11:44:28 +0000 (11:44 -0000)
adjusting permissions on a given directory.

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

pym/portage/__init__.py

index 94f818af05d0172a8cc05eddb7dfe7c12419041a..e3e38868a0c8be3d16fb6c073acd4de6622c6fa5 100644 (file)
@@ -3564,8 +3564,8 @@ def fetch(myuris, mysettings, listonly=0, fetchonly=0, locks_in_subdir=".locks",
                                        if _userpriv_test_write_file(mysettings, write_test_file):
                                                continue
 
+                               _userpriv_test_write_file_cache.pop(write_test_file, None)
                                if portage.util.ensure_dirs(mydir, gid=dir_gid, mode=dirmode, mask=modemask):
-                                       _userpriv_test_write_file_cache.pop(write_test_file, None)
                                        writemsg("Adjusting permissions recursively: '%s'\n" % mydir,
                                                noiselevel=-1)
                                        def onerror(e):