Make packages without tarball sources work nicely

When there are no directories extracted, use the base build/ directory
as the build directory.
This commit is contained in:
Samuel Tyler 2025-12-26 14:54:29 +11:00
parent af23ad1607
commit f7672536e0
No known key found for this signature in database
GPG key ID: EB5091A5C77E8DC4

View file

@ -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