diff options
author | Sebastian Luther <SebastianLuther@gmx.de> | 2010-06-26 07:16:31 +0200 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2010-06-27 15:18:32 -0700 |
commit | 3669b8463907ed927ff27f7bfc10c6fe4aebf770 (patch) | |
tree | f831a5a5448ce58f5bd4324e8f407addf9584d71 | |
parent | 10c7d5d1a1329f846baad3659486c276dafddbba (diff) | |
download | portage-3669b8463907ed927ff27f7bfc10c6fe4aebf770.tar.gz portage-3669b8463907ed927ff27f7bfc10c6fe4aebf770.tar.bz2 portage-3669b8463907ed927ff27f7bfc10c6fe4aebf770.zip |
--deselect: Print "would remove" instead of "removing" if --pretend is given
-rw-r--r-- | pym/_emerge/actions.py | 8 |
1 files changed, 6 insertions, 2 deletions
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 " + \ |