linter: specify that non-https links are still acceptable

%ci:no-build
This commit is contained in:
Leonid Pliushch 2019-08-14 14:59:05 +03:00
parent 8701462951
commit a4b1f952c1

View File

@ -96,7 +96,7 @@ lint_package() {
echo -n "TERMUX_PKG_HOMEPAGE: " echo -n "TERMUX_PKG_HOMEPAGE: "
if [ -n "$TERMUX_PKG_HOMEPAGE" ]; then if [ -n "$TERMUX_PKG_HOMEPAGE" ]; then
if ! grep -qP '^https://.+' <<< "$TERMUX_PKG_HOMEPAGE"; then if ! grep -qP '^https://.+' <<< "$TERMUX_PKG_HOMEPAGE"; then
echo "NON-HTTPS" echo "NON-HTTPS (acceptable)"
else else
echo "PASS" echo "PASS"
fi fi
@ -193,7 +193,7 @@ lint_package() {
for url in "${TERMUX_PKG_SRCURL[@]}"; do for url in "${TERMUX_PKG_SRCURL[@]}"; do
if [ -n "$url" ]; then if [ -n "$url" ]; then
if ! grep -qP '^https://.+' <<< "$url"; then if ! grep -qP '^https://.+' <<< "$url"; then
echo "NON-HTTPS" echo "NON-HTTPS (acceptable)"
urls_ok=false urls_ok=false
break break
fi fi
@ -408,7 +408,7 @@ linter_main() {
echo "================================================================" echo "================================================================"
echo echo
echo "A problem has been found in '$(realpath --relative-to="$REPO_DIR" "$package_script")'." echo "A problem has been found in '$(realpath --relative-to="$REPO_DIR" "$package_script")'."
echo "Checked $package_counter packages before first error was detected." echo "Checked $package_counter packages before the first error was detected."
echo echo
echo "================================================================" echo "================================================================"