From cdb5a4554b9c73c6d4f32d0f20cb4157b77b6e71 Mon Sep 17 00:00:00 2001 From: Sebastian Luther Date: Fri, 30 Apr 2010 08:03:29 +0200 Subject: [PATCH] Allow -C to remove packages referenced by sets in world_sets --- pym/_emerge/unmerge.py | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/pym/_emerge/unmerge.py b/pym/_emerge/unmerge.py index bfd5576d2..87875018e 100644 --- a/pym/_emerge/unmerge.py +++ b/pym/_emerge/unmerge.py @@ -377,17 +377,10 @@ def unmerge(root_config, myopts, unmerge_action, parents.append(s) break if parents: - #print colorize("WARN", "Package %s is going to be unmerged," % cpv) - #print colorize("WARN", "but still listed in the following package sets:") - #print " %s\n" % ", ".join(parents) - print(colorize("WARN", "Not unmerging package %s as it is" % cpv)) - print(colorize("WARN", "still referenced by the following package sets:")) + print(colorize("WARN", "Package %s is going to be unmerged," % cpv)) + print(colorize("WARN", "but still listed in the following package sets:")) print(" %s\n" % ", ".join(parents)) - # adjust pkgmap so the display output is correct - pkgmap[cp]["selected"].remove(cpv) - all_selected.remove(cpv) - pkgmap[cp]["protected"].add(cpv) - + del installed_sets numselected = len(all_selected) -- 2.26.2