From 3669b8463907ed927ff27f7bfc10c6fe4aebf770 Mon Sep 17 00:00:00 2001 From: Sebastian Luther Date: Sat, 26 Jun 2010 07:16:31 +0200 Subject: --deselect: Print "would remove" instead of "removing" if --pretend is given --- pym/_emerge/actions.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'pym') 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 " + \ -- cgit v1.2.3-1-g7c22