add build-fail hook

This commit is contained in:
Cem Keylan 2020-03-05 18:12:57 +03:00
parent 9d19826b85
commit 41ebab4d8f
No known key found for this signature in database
GPG Key ID: D79FAF401E813987

1
kiss
View File

@ -590,6 +590,7 @@ pkg_build() {
{ "$repo_dir/build" "$pkg_dir/$pkg" 2>&1 || {
log "$pkg" "Build failed"
log "$pkg" "Log stored to $log_dir/$pkg-$time-$pid"
run_hook build-fail
pkg_clean
kill 0
} } | tee "$log_dir/$pkg-$time-$pid"