xbps-src/update_check: update pattern for GitHub

This commit is contained in:
Đoàn Trần Công Danh 2021-03-19 22:25:01 +07:00
parent dd8b311afd
commit 59c67f7d6d
1 changed files with 1 additions and 1 deletions

View File

@ -121,7 +121,7 @@ update_check() {
*github.com*)
pkgurlname="$(printf %s "$url" | cut -d/ -f4,5)"
url="https://github.com/$pkgurlname/tags"
rx='/archive/(v?|\Q'"$pkgname"'\E-)?\K[\d\.]+(?=\.tar\.gz")';;
rx='/archive/refs/tags/(v?|\Q'"$pkgname"'\E-)?\K[\d\.]+(?=\.tar\.gz")';;
*//gitlab.*)
pkgurlname="$(printf %s "$url" | cut -d/ -f1-5)"
url="$pkgurlname/tags"