diff options
author | Zac Medico <zmedico@gentoo.org> | 2010-02-28 02:33:46 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2010-02-28 02:33:46 +0000 |
commit | 819cf00a201edc80bb00a56ff19ec559b0afda90 (patch) | |
tree | 8d0373c9061b4f9698fbaaa78c79d6358aef9bac /pym/_emerge/actions.py | |
parent | 8786ec59750550c9c990db4bbaaec13eba42d393 (diff) | |
download | portage-819cf00a201edc80bb00a56ff19ec559b0afda90.tar.gz portage-819cf00a201edc80bb00a56ff19ec559b0afda90.tar.bz2 portage-819cf00a201edc80bb00a56ff19ec559b0afda90.zip |
Add a --quiet-unmerge-warn option to disable the warning message that's shown
prior to --unmerge actions. Thanks to Thomas Sachau <tommy@gentoo.org> for the
suggestion.
svn path=/main/trunk/; revision=15486
Diffstat (limited to 'pym/_emerge/actions.py')
-rw-r--r-- | pym/_emerge/actions.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pym/_emerge/actions.py b/pym/_emerge/actions.py index c1aa20ba2..6cb690458 100644 --- a/pym/_emerge/actions.py +++ b/pym/_emerge/actions.py @@ -2282,7 +2282,9 @@ def action_uninstall(settings, trees, ldpath_mtimes, if files and not valid_atoms: return 1 - if action == 'unmerge' and '--quiet' not in opts: + if action == 'unmerge' and \ + '--quiet' not in opts and \ + '--quiet-unmerge-warn' not in opts: msg = "This action can remove important packages! " + \ "In order to be safer, use " + \ "`emerge -pv --depclean <atom>` to check for " + \ |