From 8ac4cf5ef0e4ea62e3c28985134206b44ff93889 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 27 Oct 2006 23:55:45 +0000 Subject: [PATCH] Avoid a TypeError with emerge -kN when there's no matching ebuild. svn path=/main/trunk/; revision=4858 --- bin/emerge | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) -- 2.26.2