From: Sebastian Luther Date: Sat, 26 Jun 2010 05:16:31 +0000 (+0200) Subject: --deselect: Print "would remove" instead of "removing" if --pretend is given X-Git-Tag: v2.2_rc68~540 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=3669b8463907ed927ff27f7bfc10c6fe4aebf770;p=portage.git --deselect: Print "would remove" instead of "removing" if --pretend is given --- diff --git a/pym/_emerge/actions.py b/pym/_emerge/actions.py index bc013483f..af4380ed1 100644 --- a/pym/_emerge/actions.py +++ b/pym/_emerge/actions.py @@ -1194,8 +1194,12 @@ def action_deselect(settings, trees, opts, atoms): break if discard_atoms: for atom in sorted(discard_atoms): - print(">>> Removing %s from \"world\" favorites file..." % \ - colorize("INFORM", str(atom))) + if pretend: + print(">>> Would remove %s from \"world\" favorites file..." % \ + colorize("INFORM", str(atom))) + else: + print(">>> Removing %s from \"world\" favorites file..." % \ + colorize("INFORM", str(atom))) if '--ask' in opts: prompt = "Would you like to remove these " + \