From be5df8f781284e2aa0f71ddc4748a4bb09153e7d Mon Sep 17 00:00:00 2001 From: termux-pacman-bot Date: Mon, 8 Dec 2025 20:40:23 +0000 Subject: [PATCH] Update repo --- scripts/lint-packages.sh | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/scripts/lint-packages.sh b/scripts/lint-packages.sh index 0b74d97204..00be7ee0fc 100755 --- a/scripts/lint-packages.sh +++ b/scripts/lint-packages.sh @@ -501,6 +501,8 @@ lint_package() { # If it's in archive/ anyway then it's probably a tag with the incorrect download path. elif [[ "$ref_path" == archive/* ]]; then tarball_type="can-fix" + # Get the unexpanded version of the SRCURL for the suggestion + url="$(grep -oe "$protocol//$host/$user/$repo/archive.*" "$package_script")" printf -v lint_msg '%s\n' \ "PARTIAL PASS - Tag with potential ref confusion." \ "WARNING: GitHub tarball URLs should use /archive/refs/tags/ instead of /archive/" \ @@ -551,16 +553,6 @@ lint_package() { echo "PASS - (${tarball_type+"${tarball_type}/"}${protocol_type}) ${host}/${user}/${repo}" ;; esac - # Additional debug output - # printf '%s\n' \ - # " URL: $url" \ - # "PROTO: $protocol" \ - # " _: " \ - # " HOST: $host" \ - # " USER: $user" \ - # " REPO: $repo" \ - # " PATH: $ref_path" - done unset i url protocol host user repo ref_path protocol_type tarball_type lint_msg