Merge pull request #117 from CarbsLinux/build-fail

add build-fail hook
This commit is contained in:
dylan 2020-03-05 17:14:48 +02:00 committed by GitHub
commit 56d0097da3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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"