From: Mike Frysinger Date: Sat, 17 Dec 2005 02:00:09 +0000 (-0000) Subject: add an add-ebuild-death-hook func so people dont need to know about setting some... X-Git-Tag: v2.1_pre1~10 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=64bdf0e81ca51b61c4acc0bab94f17ff6e0c9aba;p=portage.git add an add-ebuild-death-hook func so people dont need to know about setting some variable svn path=/main/trunk/; revision=2380 --- diff --git a/bin/ebuild.sh b/bin/ebuild.sh index 2204bf54b..c4f030113 100755 --- a/bin/ebuild.sh +++ b/bin/ebuild.sh @@ -263,6 +263,10 @@ use_enable() { return 0 } +add-ebuild-death-hook() { + export EBUILD_DEATH_HOOKS="${EBUILD_DEATH_HOOKS} $*" +} + diefunc() { local funcname="$1" lineno="$2" exitcode="$3" shift 3