build-package.sh: default TERMUX_REPO_PKG_FORMAT to debian

This commit is contained in:
Lucy Phipps 2023-09-03 11:03:42 +01:00 committed by GitHub
parent c156316783
commit a25a4f1163
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -59,6 +59,10 @@ fi
export TERMUX_PACKAGES_DIRECTORIES=$(jq --raw-output 'del(.pkg_format) | keys | .[]' ${TERMUX_SCRIPTDIR}/repo.json)
export TERMUX_REPO_PKG_FORMAT=$(jq --raw-output '.pkg_format' ${TERMUX_SCRIPTDIR}/repo.json)
if [ "$TERMUX_REPO_PKG_FORMAT" = "null" ]; then
export TERMUX_REPO_PKG_FORMAT="debian"
fi
# Special variable for internal use. It forces script to ignore
# lock file.