mirror of
https://github.com/void-linux/void-packages.git
synced 2025-08-01 10:22:56 +02:00
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-};;
|
update_pkgname=${update_pkgname#python-};;
|
||||||
*github.com*)
|
*github.com*)
|
||||||
githubname="$(printf %s "$url" | cut -d/ -f4,5)"
|
githubname="$(printf %s "$url" | cut -d/ -f4,5)"
|
||||||
url="https://api.github.com/repos/$githubname/tags"
|
url="https://github.com/$githubname/tags"
|
||||||
rx='"name":\s*"(v|'"$update_pkgname"'-)?\K[^\d]*([\d\.]+)(?=")';;
|
rx='/archive/(v?|\Q'"$update_pkgname"'\E-)?\K[\d\.]+(?=\.tar\.gz")';;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue