aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Luther <SebastianLuther@gmx.de>2010-06-26 07:16:31 +0200
committerZac Medico <zmedico@gentoo.org>2010-06-27 15:18:32 -0700
commit3669b8463907ed927ff27f7bfc10c6fe4aebf770 (patch)
treef831a5a5448ce58f5bd4324e8f407addf9584d71 /pym/_emerge
parentMake --deselect handle all cases of atoms/sets on the cmd line and in @world ... (diff)
downloadportage-3669b8463907ed927ff27f7bfc10c6fe4aebf770.tar.gz
portage-3669b8463907ed927ff27f7bfc10c6fe4aebf770.tar.bz2
portage-3669b8463907ed927ff27f7bfc10c6fe4aebf770.zip
--deselect: Print "would remove" instead of "removing" if --pretend is given
Diffstat (limited to 'pym/_emerge')
-rw-r--r--pym/_emerge/actions.py8
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 " + \