Fix vardbapi.move_ent and aux_update to clear relevant caches.
authorZac Medico <zmedico@gentoo.org>
Sun, 28 Feb 2010 03:42:22 +0000 (03:42 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 28 Feb 2010 03:42:22 +0000 (03:42 -0000)
svn path=/main/trunk/; revision=15489

pym/portage/dbapi/vartree.py

index 0ccc4ddd4423c050442f4a8ee000b78773487f17..5d594803b31a43bc646dc1e67db96e94ef4bbc42 100644 (file)
@@ -949,6 +949,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]
@@ -1345,6 +1347,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)