From: Zac Medico Date: Fri, 30 Jun 2006 08:54:32 +0000 (-0000) Subject: Pass portdbapi instances into doebuild in order to avoid dependance on globals. X-Git-Tag: v2.1.1~331 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2d8072d47f6aae70d9360c087f1d4d71e46b3cb4;p=portage.git Pass portdbapi instances into doebuild in order to avoid dependance on globals. svn path=/main/trunk/; revision=3712 --- diff --git a/bin/emerge b/bin/emerge index 2a4d990d9..09328b8ca 100755 --- a/bin/emerge +++ b/bin/emerge @@ -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)