From 47b5d5ef4eb6c2803e61890949fd7e9ab2164796 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Sun, 25 Nov 2012 20:15:35 -0500 Subject: functions: always return successfully if we ran a build hook Removal of the old API (f85d28014134076) exposed the fact that a build hook returning an error would increment the builderrors. This isn't really wanted -- we don't want to declare a hard "pass/fail" for a hook, as the functions we actually care about passing/failing are the add_* functions which are of real concern (and already caught). Signed-off-by: Dave Reisner --- functions | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/functions b/functions index 10a072c..4d7b2ea 100644 --- a/functions +++ b/functions @@ -646,6 +646,11 @@ run_build_hook() { # run msg2 "Running build hook: [%s]" "${script##*/}" build + + # if we made it this far, return successfully. Hooks can + # do their own error catching if it's severe enough, and + # we already capture errors from the add_* functions. + return 0 } # vim: set ft=sh ts=4 sw=4 et: -- cgit v1.2.3-24-g4f1b