Trigger an update of the Packages index when a package is moved or aux_update() is...
authorZac Medico <zmedico@gentoo.org>
Thu, 31 May 2007 07:41:05 +0000 (07:41 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 31 May 2007 07:41:05 +0000 (07:41 -0000)
svn path=/main/trunk/; revision=6690

pym/portage/dbapi/bintree.py

index 94704e45565bb6ddb22aa151d3df6e68c9a0c88a..b7fa1ba659d13c670e2371c1a5f3932622ad966a 100644 (file)
@@ -81,6 +81,7 @@ class bindbapi(fakedbapi):
                        if not v:
                                del mydata[k]
                mytbz2.recompose_mem(portage.xpak.xpak_mem(mydata))
+               self.bintree.inject(cpv)
 
        def cp_list(self, *pargs, **kwargs):
                if not self.bintree.populated:
@@ -194,7 +195,7 @@ class binarytree(object):
                                self._remove_symlink(mycpv)
                                if new_path.split(os.path.sep)[-2] == "All":
                                        self._create_symlink(mynewcpv)
-                       self.dbapi.cpv_inject(mynewcpv)
+                       self.inject(mynewcpv)
 
                return moves