diff options
Diffstat (limited to 'pym/_emerge/main.py')
-rw-r--r-- | pym/_emerge/main.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/pym/_emerge/main.py b/pym/_emerge/main.py index 267254c78..b69a00401 100644 --- a/pym/_emerge/main.py +++ b/pym/_emerge/main.py @@ -384,8 +384,21 @@ def post_emerge(myaction, myopts, myfiles, writemsg_level( " %s spawn failed of %s\n" % (bad("*"), postemerge,), level=logging.ERROR, noiselevel=-1) + + if "--quiet" not in myopts and \ + myaction is None and "@world" in myfiles: + show_depclean_suggestion() + sys.exit(retval) +def show_depclean_suggestion(): + out = portage.output.EOutput() + msg = "After world updates, it is important to remove " + \ + "obsolete packages with emerge --depclean. Refer " + \ + "to `man emerge` for more information." + for line in textwrap.wrap(msg, 72): + out.einfo(line) + def multiple_actions(action1, action2): sys.stderr.write("\n!!! Multiple actions requested... Please choose one only.\n") sys.stderr.write("!!! '%s' or '%s'\n\n" % (action1, action2)) |