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
diff --git a/bin/ebuild.sh b/bin/ebuild.sh
index 7187cb8..2a9b9d4 100755
--- a/bin/ebuild.sh
+++ b/bin/ebuild.sh
@@ -283,6 +283,11 @@
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
}