update_check.sh: scan tags page instead of using the API.

This commit is contained in:
Christian Neukirchen 2014-11-02 16:31:17 +01:00
parent 263a8c3b78
commit 637dcf9472

View file

@ -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