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 | Make --prune pull in the system set since that could pull in some slots that ... (diff) | |
download | portage-multirepo-165c14d6881c9726f14ff2271344a1a768c31e3a.tar.gz portage-multirepo-165c14d6881c9726f14ff2271344a1a768c31e3a.tar.bz2 portage-multirepo-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
@@ -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): |