From: Zac Medico Date: Sun, 22 Jul 2007 06:39:35 +0000 (-0000) Subject: Prevent a potential KeyError when removing world from the digraph for --prune display... X-Git-Tag: v2.1.3~24 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=165c14d6881c9726f14ff2271344a1a768c31e3a;p=portage.git Prevent a potential KeyError when removing world from the digraph for --prune display. (trunk r7344) svn path=/main/branches/2.1.2/; revision=7347 --- 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):