pthbs

Packaging Through Hashed Build Scripts
git clone https://ccx.te2000.cz/git/pthbs
Log | Files | Refs | Submodules | README

commit e3b3b0f919535f670a5298da48060b7982b17cd3
parent 56072459cb7c655fa9e6a89ba1a0708dad96ff07
Author: Jan Pobrislo <ccx@te2000.cz>
Date:   Wed, 30 Apr 2025 12:47:39 +0000

Fix check for .install-links file

Diffstat:
Mcommand/pthbs-build | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/command/pthbs-build b/command/pthbs-build @@ -153,7 +153,7 @@ if env -i \ pthbs_package="$pthbs_package" \ pthbs_xtrace="$pthbs_xtrace" \ sh $pthbs_xtrace -e "$workdir/pthbs-setup" </dev/null; then - if test -f "$pthbs_destdir/${pthbs_versions%/}/$pthbs_package/.install-links"; then + if test -f "$workdir/destdir/${pthbs_versions%/}/$pthbs_package/.install-links"; then trap - INT printf "BUILD SUCCESFUL :: %s\n" "$pthbs_package" if ! pthbs-install "$workdir/destdir" "$pthbs_package"; then @@ -172,7 +172,7 @@ if test -n "$fail_reason"; then trap - INT if test -n "$pthbs_fail_log_cmd"; then $pthbs_fail_log_cmd "$workdir/build.log" - else + elif test exitcode = "${fail_reason%% *}"; then printf "Errors found in log:\n" grep -C 1 -Eie '(error|fatal)[: ]' "$workdir/build.log" fi