Avoid a TypeError with emerge -kN when there's no matching ebuild.
authorZac Medico <zmedico@gentoo.org>
Fri, 27 Oct 2006 23:55:45 +0000 (23:55 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 27 Oct 2006 23:55:45 +0000 (23:55 -0000)
svn path=/main/trunk/; revision=4858

bin/emerge

index 32bee88b81f9988821740dbeddb969e78dea2625..a7b2b0a298dfa50ec7f9a4ed7732c2cacfa7a25e 100755 (executable)
@@ -1269,7 +1269,10 @@ class depgraph:
                                        mydb = None
                                        if "--usepkgonly" not in self.myopts and myeb:
                                                mydb = portdb
-                                       pkgsettings.setcpv(myeb, mydb=mydb)
+                                       if myeb:
+                                               pkgsettings.setcpv(myeb, mydb=mydb)
+                                       else:
+                                               pkgsettings.setcpv(myeb_pkg, mydb=mydb)
                                        now_use = pkgsettings["USE"].split()
                                        forced_flags = set()
                                        forced_flags.update(pkgsettings.useforce)