Browse Source

linter: specify that non-https links are still acceptable

%ci:no-build
emacs-27
Leonid Plyushch 6 years ago
parent
commit
0c66d56197
No known key found for this signature in database GPG Key ID: 45F2964132545795
  1. 6
      scripts/lint-packages.sh

6
scripts/lint-packages.sh

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

Loading…
Cancel
Save