diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-07-22 06:39:35 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-07-22 06:39:35 +0000 |
commit | 165c14d6881c9726f14ff2271344a1a768c31e3a (patch) | |
tree | 70d8a19446a6d60b6a2c6ac9b7719617bec42027 | |
parent | 50504a0b7e15ecd7345880137478b12ae77f9dd0 (diff) | |
download | portage-165c14d6881c9726f14ff2271344a1a768c31e3a.tar.gz portage-165c14d6881c9726f14ff2271344a1a768c31e3a.tar.bz2 portage-165c14d6881c9726f14ff2271344a1a768c31e3a.zip |
Prevent a potential KeyError when removing world from the digraph for --prune display. (trunk r7344)
svn path=/main/branches/2.1.2/; revision=7347
-rwxr-xr-x | bin/emerge | 3 |
1 files changed, 2 insertions, 1 deletions
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): |