From: Zac Medico Date: Sat, 1 Jul 2006 05:37:14 +0000 (-0000) Subject: Pass a portdbapi instance into doebuild to avoid dependence on global variables. X-Git-Tag: v2.1.1~316 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2384a2348b37e66b02d28ff13ab3ea83c5e3df27;p=portage.git Pass a portdbapi instance into doebuild to avoid dependence on global variables. svn path=/main/trunk/; revision=3728 --- diff --git a/bin/emerge b/bin/emerge index 98ded201b..45a4472a9 100755 --- a/bin/emerge +++ b/bin/emerge @@ -1814,12 +1814,12 @@ class depgraph: retval = portage.doebuild(y, "fetch", myroot, self.pkgsettings, self.edebug, "--pretend" in self.myopts, fetchonly=1, - fetchall=1, tree="porttree") + fetchall=1, mydbapi=self.portdb, tree="porttree") else: retval = portage.doebuild(y, "fetch", myroot, self.pkgsettings, self.edebug, "--pretend" in self.myopts, fetchonly=1, - tree="porttree") + mydbapi=self.portdb, tree="porttree") if (retval is None) or retval: print print "!!! Fetch for",y,"failed, continuing..."