From 165c14d6881c9726f14ff2271344a1a768c31e3a Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 22 Jul 2007 06:39:35 +0000 Subject: [PATCH] Prevent a potential KeyError when removing world from the digraph for --prune display. (trunk r7344) svn path=/main/branches/2.1.2/; revision=7347 --- bin/emerge | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/emerge b/bin/emerge index f3952ea59..84cd16a5d 100755 --- a/bin/emerge +++ b/bin/emerge @@ -5504,7 +5504,8 @@ def action_depclean(settings, trees, ldpath_mtimes, elif action == "prune": # Prune really uses all installed instead of world. It's not a real # reverse dependency so don't display it as such. - graph.remove("world") + if graph.contains("world"): + graph.remove("world") for atom in args_set: for pkg in vardb.match(atom): if not fakedb.cpv_exists(pkg): -- 2.26.2