From 7332f1cea708549416de161b03c4da3543c6060d Mon Sep 17 00:00:00 2001 From: Brian Harring Date: Wed, 5 Oct 2005 17:39:46 +0000 Subject: added EBUILD_DEATH_HOOKS , a way for ebuilds/eclasses to register extra messages to spew if die is triggered svn path=/main/branches/2.0/; revision=2106 --- bin/ebuild.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bin/ebuild.sh b/bin/ebuild.sh index 7187cb81b..2a9b9d4b0 100755 --- a/bin/ebuild.sh +++ b/bin/ebuild.sh @@ -283,6 +283,11 @@ diefunc() { echo "!!! ${*:-(no error message)}" >&2 echo "!!! If you need support, post the topmost build error, NOT this status message." >&2 echo >&2 + if [ "${EBUILD_PHASE/depend}" == "${EBUILD_PHASE}" ]; then + for x in $EBUILD_DEATH_HOOKS; do + ${x} "$@" >&2 1>&2 + done + fi exit 1 } -- cgit v1.2.3-1-g7c22