From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Prhgs-0006Xr-JU for garchives@archives.gentoo.org; Tue, 22 Feb 2011 02:09:26 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5FC7FE0517; Tue, 22 Feb 2011 02:09:17 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 31799E0517 for ; Tue, 22 Feb 2011 02:09:17 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 903891B40D6 for ; Tue, 22 Feb 2011 02:09:16 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 7BE098006A for ; Tue, 22 Feb 2011 02:09:15 +0000 (UTC) From: "Zac Medico" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Zac Medico" Message-ID: <550795df709cfa9ec4a9502a4ad835319f778e95.zmedico@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: pym/_emerge/ X-VCS-Repository: proj/portage X-VCS-Files: pym/_emerge/main.py X-VCS-Directories: pym/_emerge/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: 550795df709cfa9ec4a9502a4ad835319f778e95 Date: Tue, 22 Feb 2011 02:09:15 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: bd2ce569fa7beb093121b9e98e1cdf50 commit: 550795df709cfa9ec4a9502a4ad835319f778e95 Author: Zac Medico gentoo org> AuthorDate: Tue Feb 22 02:07:07 2011 +0000 Commit: Zac Medico gentoo org> CommitDate: Tue Feb 22 02:07:07 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/portage.git;a= =3Dcommit;h=3D550795df post_emerge: suggest depclean after world update This is part of bug #354787. --- 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 e1ea33a..e5738a1 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=3Dlogging.ERROR, noiselevel=3D-1) + + if "--quiet" not in myopts and \ + myaction is None and "@world" in myfiles: + show_depclean_suggestion() + sys.exit(retval) =20 +def show_depclean_suggestion(): + out =3D portage.output.EOutput() + msg =3D "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))