summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/_emerge/actions.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/pym/_emerge/actions.py b/pym/_emerge/actions.py
index 2def0e89e..702ccff98 100644
--- a/pym/_emerge/actions.py
+++ b/pym/_emerge/actions.py
@@ -2280,6 +2280,15 @@ def action_uninstall(settings, trees, ldpath_mtimes,
if files and not valid_atoms:
return 1
+ if action == 'unmerge' and '--quiet' not in opts:
+ msg = "This action can remove important packages! " + \
+ "In order to be safer, use " + \
+ "`emerge -pv --depclean <atom>` to check for " + \
+ "reverse dependencies before removing packages."
+ out = portage.output.EOutput()
+ for line in textwrap.wrap(msg, 72):
+ out.ewarn(line)
+
if action in ('clean', 'unmerge') or \
(action == 'prune' and "--nodeps" in opts):
# When given a list of atoms, unmerge them in the order given.