summaryrefslogtreecommitdiffstats
path: root/functions
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2012-11-26 02:15:35 +0100
committerDave Reisner <dreisner@archlinux.org>2012-11-26 02:47:48 +0100
commit47b5d5ef4eb6c2803e61890949fd7e9ab2164796 (patch)
tree19385e35ce850d7a1a6a8c1f73d7c7213aabd6e5 /functions
parent5bce429b600c6ae7443b7c6c0d8d3133e01ee091 (diff)
downloadmkinitcpio-47b5d5ef4eb6c2803e61890949fd7e9ab2164796.tar.gz
mkinitcpio-47b5d5ef4eb6c2803e61890949fd7e9ab2164796.tar.xz
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 <dreisner@archlinux.org>
Diffstat (limited to 'functions')
-rw-r--r--functions5
1 files changed, 5 insertions, 0 deletions
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: