Fix vardbapi.move_ent and aux_update to clear relevant caches. (trunk r15489)
authorZac Medico <zmedico@gentoo.org>
Tue, 2 Mar 2010 21:08:24 +0000 (21:08 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 2 Mar 2010 21:08:24 +0000 (21:08 -0000)
svn path=/main/branches/2.1.7/; revision=15690

pym/portage/dbapi/vartree.py

index 1c08c7007fcf4cd3d40f8e9967798d000d9f682c..75143a318b8153507bcb7afc042619497c7ab0bc 100644 (file)
@@ -220,6 +220,8 @@ class vardbapi(dbapi):
                                #dest already exists; keep this puppy where it is.
                                continue
                        _movefile(origpath, newpath, mysettings=self.settings)
+                       self._clear_pkg_cache(self._dblink(mycpv))
+                       self._clear_pkg_cache(self._dblink(mynewcpv))
 
                        # We need to rename the ebuild now.
                        old_pf = catsplit(mycpv)[1]
@@ -616,6 +618,7 @@ class vardbapi(dbapi):
                treetype="vartree", vartree=self.vartree)
                if not mylink.exists():
                        raise KeyError(cpv)
+               self._clear_pkg_cache(mylink)
                for k, v in values.items():
                        if v:
                                mylink.setfile(k, v)