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 1PqSkx-0001SM-Qc for garchives@archives.gentoo.org; Fri, 18 Feb 2011 16:00:34 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 591581C026; Fri, 18 Feb 2011 16:00:25 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 2B8C71C026 for ; Fri, 18 Feb 2011 16:00:25 +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 BA2DD1B42A3 for ; Fri, 18 Feb 2011 16:00:24 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 00A108006A for ; Fri, 18 Feb 2011 16:00:24 +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: 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: bb87f96b0cd894083a4e878baaf1e94224a969a6 Date: Fri, 18 Feb 2011 16:00:24 +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: f601e5505f6660ddf22a4929df29fbbe commit: bb87f96b0cd894083a4e878baaf1e94224a969a6 Author: Gokdeniz Karadag gmail com> AuthorDate: Fri Feb 18 15:57:25 2011 +0000 Commit: Zac Medico gentoo org> CommitDate: Fri Feb 18 15:57:25 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/portage.git;a= =3Dcommit;h=3Dbb87f96b emerge: support post_emerge hook like post_sync This will fix bug #355447. --- pym/_emerge/main.py | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/pym/_emerge/main.py b/pym/_emerge/main.py index 95174cc..47975e3 100644 --- a/pym/_emerge/main.py +++ b/pym/_emerge/main.py @@ -367,6 +367,14 @@ def post_emerge(root_config, myopts, mtimedb, retval= ): if retval in (None, os.EX_OK) or (not "--pretend" in myopts): display_preserved_libs(vardbapi, myopts)=09 =20 + from portage.output import red, bold + postemerge =3D os.path.join(settings["PORTAGE_CONFIGROOT"], + portage.USER_CONFIG_PATH, "bin", "post_emerge") + if os.access(postemerge, os.X_OK): + retval =3D portage.process.spawn( + [postemerge], env=3Dsettings.environ()) + if retval !=3D os.EX_OK: + print(red(" * ") + bold("spawn failed of " + postemerge)) sys.exit(retval) =20 def multiple_actions(action1, action2):