From 2d8072d47f6aae70d9360c087f1d4d71e46b3cb4 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 30 Jun 2006 08:54:32 +0000 Subject: [PATCH] Pass portdbapi instances into doebuild in order to avoid dependance on globals. svn path=/main/trunk/; revision=3712 --- bin/emerge | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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) -- 2.26.2