aboutsummaryrefslogtreecommitdiffstats
path: root/.extras/test-build
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-07-13 11:06:29 +0200
committerDanilo M. <danix@danix.xyz>2026-07-13 11:06:29 +0200
commit11153a8775c08ef4559cb31664615fa9c4e158a2 (patch)
treecdb828218bc4d19822575429d13e3bfdf5bd1065 /.extras/test-build
parent7c7e549ffdcd4532534b776e289301b3e4fc8dde (diff)
downloadsbo-slackbuilds-11153a8775c08ef4559cb31664615fa9c4e158a2.tar.gz
sbo-slackbuilds-11153a8775c08ef4559cb31664615fa9c4e158a2.zip
test-build: fix empty-order corruption when all deps dropped
Diffstat (limited to '.extras/test-build')
-rwxr-xr-x.extras/test-build9
1 files changed, 8 insertions, 1 deletions
diff --git a/.extras/test-build b/.extras/test-build
index ecd763f..018030e 100755
--- a/.extras/test-build
+++ b/.extras/test-build
@@ -285,7 +285,14 @@ apply_overrides_to_order() {
[[ "${OV_DROP[$prog]:-}" == "1" ]] && continue
keep+=("$d")
done
- RESOLVED_ORDER=("${keep[@]:-}")
+ # Assign without "${keep[@]:-}": under set -u that fallback yields a
+ # one-element array holding an empty string when keep is empty (all deps
+ # dropped), which the build loop would then iterate over as d="". Guard it.
+ if [[ ${#keep[@]} -eq 0 ]]; then
+ RESOLVED_ORDER=()
+ else
+ RESOLVED_ORDER=("${keep[@]}")
+ fi
}
# =============================================================================