From: Sebastian Luther Date: Fri, 30 Apr 2010 06:03:29 +0000 (+0200) Subject: Allow -C to remove packages referenced by sets in world_sets X-Git-Tag: v2.2_rc68~621 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=cdb5a4554b9c73c6d4f32d0f20cb4157b77b6e71;p=portage.git Allow -C to remove packages referenced by sets in world_sets --- 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)