diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-12-17 02:00:09 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-12-17 02:00:09 +0000 |
commit | 64bdf0e81ca51b61c4acc0bab94f17ff6e0c9aba (patch) | |
tree | fd826a8fb309c6d543c61229530936a336556a38 | |
parent | 18209861c30dbfece7d67300fb220e6636f141a5 (diff) | |
download | portage-64bdf0e81ca51b61c4acc0bab94f17ff6e0c9aba.tar.gz portage-64bdf0e81ca51b61c4acc0bab94f17ff6e0c9aba.tar.bz2 portage-64bdf0e81ca51b61c4acc0bab94f17ff6e0c9aba.zip |
add an add-ebuild-death-hook func so people dont need to know about setting some variable
svn path=/main/trunk/; revision=2380
-rwxr-xr-x | bin/ebuild.sh | 4 |
1 files changed, 4 insertions, 0 deletions
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 |