From: Zac Medico Date: Fri, 27 Oct 2006 23:55:45 +0000 (-0000) Subject: Avoid a TypeError with emerge -kN when there's no matching ebuild. X-Git-Tag: v2.1.2~535 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8ac4cf5ef0e4ea62e3c28985134206b44ff93889;p=portage.git Avoid a TypeError with emerge -kN when there's no matching ebuild. svn path=/main/trunk/; revision=4858 --- diff --git a/bin/emerge b/bin/emerge index 32bee88b8..a7b2b0a29 100755 --- a/bin/emerge +++ b/bin/emerge @@ -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)