From c7ad5b145e7a52a96413dbeb1dc255b6e5ba5996 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 18 Oct 2006 09:15:50 +0000 Subject: [PATCH] Fix --usepkg --newuse logic so that it doesn't throw a KeyError if there's no matching ebuild in the tree. svn path=/main/trunk/; revision=4748 --- bin/emerge | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/emerge b/bin/emerge index ea4162d6c..1bc29c916 100755 --- a/bin/emerge +++ b/bin/emerge @@ -1246,7 +1246,10 @@ class depgraph: iuses = set(filter_iuse_defaults( bindb.aux_get(myeb_pkg, ["IUSE"])[0].split())) old_use = bindb.aux_get(myeb_pkg, ["USE"])[0].split() - pkgsettings.setcpv(myeb_pkg, mydb=portdb) + mydb = None + if "--usepkgonly" not in self.myopts and myeb: + mydb = portdb + pkgsettings.setcpv(myeb, mydb=mydb) now_use = pkgsettings["USE"].split() forced_flags = set() forced_flags.update(pkgsettings.useforce) -- 2.26.2