added EBUILD_DEATH_HOOKS , a way for ebuilds/eclasses to register extra messages...
authorBrian Harring <ferringb@gentoo.org>
Wed, 5 Oct 2005 17:39:46 +0000 (17:39 -0000)
committerBrian Harring <ferringb@gentoo.org>
Wed, 5 Oct 2005 17:39:46 +0000 (17:39 -0000)
svn path=/main/branches/2.0/; revision=2106

bin/ebuild.sh

index 7187cb81b988cd2d101f483537986f1f02451d11..2a9b9d4b0dafda946b2e471460ab1ce6adc2d76b 100755 (executable)
@@ -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
 }