Pass a portdbapi instance into doebuild to avoid dependence on global variables.
authorZac Medico <zmedico@gentoo.org>
Sat, 1 Jul 2006 05:37:14 +0000 (05:37 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 1 Jul 2006 05:37:14 +0000 (05:37 -0000)
svn path=/main/trunk/; revision=3728

bin/emerge

index 98ded201b2b0815656406ef0ff7df5372ca633ff..45a4472a984b6d7a41df780a67c394352130b749 100755 (executable)
@@ -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..."