From f7672536e01f8a89e385c32191027f4499f9c7cb Mon Sep 17 00:00:00 2001 From: Samuel Tyler Date: Fri, 26 Dec 2025 14:54:29 +1100 Subject: [PATCH] Make packages without tarball sources work nicely When there are no directories extracted, use the base build/ directory as the build directory. --- steps/helpers.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/steps/helpers.sh b/steps/helpers.sh index 00b783c4..aa27aeb3 100755 --- a/steps/helpers.sh +++ b/steps/helpers.sh @@ -405,6 +405,10 @@ default_src_unpack() { fi done fi + if ! [ -e "${dirname}" ]; then + # there are no directories extracted + dirname=. + fi # shellcheck disable=SC2162 tail -n +2 ../sources | while read line; do # shellcheck disable=SC2086