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 1R6WnJ-00045W-03 for garchives@archives.gentoo.org; Thu, 22 Sep 2011 00:05:43 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id F06E621C196; Thu, 22 Sep 2011 00:05:22 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id C58FF21C196 for ; Thu, 22 Sep 2011 00:05:22 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3C7671B4011 for ; Thu, 22 Sep 2011 00:05:22 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 82E7080042 for ; Thu, 22 Sep 2011 00:05:21 +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: <9144182d9c8f0cf16973d8ec91eafc624310c6ca.zmedico@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: pym/portage/package/ebuild/, bin/ X-VCS-Repository: proj/portage X-VCS-Files: bin/misc-functions.sh pym/portage/package/ebuild/doebuild.py X-VCS-Directories: pym/portage/package/ebuild/ bin/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: 9144182d9c8f0cf16973d8ec91eafc624310c6ca Date: Thu, 22 Sep 2011 00:05:21 +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: 25d341a2d18b9e5a26b21f21d2142415 commit: 9144182d9c8f0cf16973d8ec91eafc624310c6ca Author: Brian Harring gmail com> AuthorDate: Wed Sep 21 22:50:28 2011 +0000 Commit: Zac Medico gentoo org> CommitDate: Thu Sep 22 00:03:45 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/portage.git;a= =3Dcommit;h=3D9144182d add install hooks --- bin/misc-functions.sh | 15 +++++++++++++++ pym/portage/package/ebuild/doebuild.py | 3 ++- 2 files changed, 17 insertions(+), 1 deletions(-) diff --git a/bin/misc-functions.sh b/bin/misc-functions.sh index 30244a7..7d858a2 100755 --- a/bin/misc-functions.sh +++ b/bin/misc-functions.sh @@ -985,6 +985,21 @@ success_hooks() { done } =20 +install_hooks() { + local hooks_dir=3D"${PORTAGE_CONFIG_ROOT}/etc/portage/hooks/install" + local fp + local ret=3D0 + shopt -s nullglob + for fp in "${hooks_dir}"/*; do + if [ -x "$fp" ]; then + "$fp" + ret=3D$(( $ret | $? )) + fi + done + shopt +s nullglob + return $ret +} + if [ -n "${MISC_FUNCTIONS_ARGS}" ]; then source_all_bashrcs [ "$PORTAGE_DEBUG" =3D=3D "1" ] && set -x diff --git a/pym/portage/package/ebuild/doebuild.py b/pym/portage/package= /ebuild/doebuild.py index 427589a..9939e9c 100644 --- a/pym/portage/package/ebuild/doebuild.py +++ b/pym/portage/package/ebuild/doebuild.py @@ -1393,7 +1393,8 @@ _post_phase_cmds =3D { =20 "install" : [ "install_qa_check", - "install_symlink_html_docs"], + "install_symlink_html_docs", + "install_hooks"], =20 "preinst" : [ "preinst_sfperms",