Pass portdbapi instances into doebuild in order to avoid dependance on globals.
authorZac Medico <zmedico@gentoo.org>
Fri, 30 Jun 2006 08:54:32 +0000 (08:54 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 30 Jun 2006 08:54:32 +0000 (08:54 -0000)
svn path=/main/trunk/; revision=3712

bin/emerge

index 2a4d990d95f48c8ef49b390a92ac0509ec9e4b76..09328b8caf1a5de6f376f7c1c5b0a26f9bc33048 100755 (executable)
@@ -1838,7 +1838,7 @@ class depgraph:
                                                x[pkgindex]+"::"+y+")", short_msg=short_msg)
                                        retval = portage.doebuild(y, "clean", myroot,
                                                self.pkgsettings, self.edebug, cleanup=1,
-                                               tree="porttree")
+                                               mydbapi=self.portdb, tree="porttree")
                                        if (retval is None):
                                                portage_util.writemsg("Unable to run required binary.\n",
                                                        noiselevel=-1)
@@ -1851,7 +1851,8 @@ class depgraph:
                                                ") Compiling/Packaging ("+x[pkgindex]+"::"+y+\
                                                ")", short_msg=short_msg)
                                        retval = portage.doebuild(y, "package", myroot,
-                                               self.pkgsettings, self.edebug, tree="porttree")
+                                               self.pkgsettings, self.edebug, mydbapi=self.portdb,
+                                               tree="porttree")
                                        if (retval is None):
                                                portage_util.writemsg("Unable to run required binary.\n",
                                                        noiselevel=-1)