xbps-src/update_check: update pattern for GitHub
This commit is contained in:
parent
dd8b311afd
commit
59c67f7d6d
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue