From: Zac Medico Date: Thu, 31 May 2007 07:41:05 +0000 (-0000) Subject: Trigger an update of the Packages index when a package is moved or aux_update() is... X-Git-Tag: v2.2_pre1~1326 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e7bdb8d58f23bf6a1764045c23526a665e18b833;p=portage.git Trigger an update of the Packages index when a package is moved or aux_update() is called. svn path=/main/trunk/; revision=6690 --- diff --git a/pym/portage/dbapi/bintree.py b/pym/portage/dbapi/bintree.py index 94704e455..b7fa1ba65 100644 --- a/pym/portage/dbapi/bintree.py +++ b/pym/portage/dbapi/bintree.py @@ -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