diff options
-rw-r--r-- | pym/_emerge/__init__.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py index 004d13fdf..38ba17645 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -14087,6 +14087,13 @@ def action_deselect(settings, trees, opts, atoms): for atom in sorted(discard_atoms): print ">>> Removing %s from \"world\" favorites file..." % \ colorize("INFORM", str(atom)) + + if '--ask' in opts: + prompt = "Would you like to remove these " + \ + "packages from your world favorites?" + if userquery(prompt) == 'No': + return os.EX_OK + remaining = set(world_set) remaining.difference_update(discard_atoms) if not pretend: |