lint-packages: allow TERMUX_PKG_SHA256 to be empty sometimes

If TERMUX_PKG_SRCURL is git repo (url ends with .git) then no hashsum
needs to be given.
This commit is contained in:
Henrik Grimler 2020-07-17 14:12:48 +02:00
parent 7c74bf9726
commit ca34d7345d

View File

@ -236,6 +236,8 @@ lint_package() {
echo "LENGTHS OF 'TERMUX_PKG_SRCURL' AND 'TERMUX_PKG_SHA256' ARE NOT EQUAL"
pkg_lint_error=true
fi
elif [ "${TERMUX_PKG_SRCURL: -4}" == ".git" ]; then
echo "NOT SET (acceptable since TERMUX_PKG_SRCURL is git repo)"
else
echo "NOT SET"
pkg_lint_error=true