kiss: unsquish

This commit is contained in:
Dylan Araps 2020-09-27 09:10:05 +03:00
parent 6ff9928b69
commit b6869bc8a6
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E

16
kiss
View File

@ -672,13 +672,15 @@ pkg_build() {
# Call the build script, log the output to the terminal and to a file. # Call the build script, log the output to the terminal and to a file.
# There's no PIPEFAIL in POSIX shelll so we must resort to tricks like # There's no PIPEFAIL in POSIX shelll so we must resort to tricks like
# killing the script ourselves. # killing the script ourselves.
{ "$repo_dir/build" "$pkg_dir/$pkg" "$build_version" 2>&1 || { {
log "$pkg" "build failed" "$repo_dir/build" "$pkg_dir/$pkg" "$build_version" 2>&1 || {
log "$pkg" "log stored to $log_dir/$pkg/$date-$pid" log "$pkg" "build failed"
run_user_hook build-fail "$pkg" "$pkg_dir/$pkg" log "$pkg" "log stored to $log_dir/$pkg/$date-$pid"
pkg_clean run_user_hook build-fail "$pkg" "$pkg_dir/$pkg"
kill 0 pkg_clean
} } | tee "$log_dir/$pkg/$date-$pid" kill 0
}
} | tee "$log_dir/$pkg/$date-$pid"
# Delete the log file if the build succeeded to prevent the directory # Delete the log file if the build succeeded to prevent the directory
# from filling very quickly with useless logs. # from filling very quickly with useless logs.