update_check.sh: scan tags page instead of using the API.
This commit is contained in:
parent
263a8c3b78
commit
637dcf9472
1 changed files with 2 additions and 2 deletions
|
@ -36,8 +36,8 @@ update_check() {
|
|||
update_pkgname=${update_pkgname#python-};;
|
||||
*github.com*)
|
||||
githubname="$(printf %s "$url" | cut -d/ -f4,5)"
|
||||
url="https://api.github.com/repos/$githubname/tags"
|
||||
rx='"name":\s*"(v|'"$update_pkgname"'-)?\K[^\d]*([\d\.]+)(?=")';;
|
||||
url="https://github.com/$githubname/tags"
|
||||
rx='/archive/(v?|\Q'"$update_pkgname"'\E-)?\K[\d\.]+(?=\.tar\.gz")';;
|
||||
esac
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue