From 637dcf947201f8f369e9b9a2e9eafee77b0b1780 Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Sun, 2 Nov 2014 16:31:17 +0100 Subject: [PATCH] update_check.sh: scan tags page instead of using the API. --- common/xbps-src/shutils/update_check.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/xbps-src/shutils/update_check.sh b/common/xbps-src/shutils/update_check.sh index 96fa85fc6f6..ddb42900045 100644 --- a/common/xbps-src/shutils/update_check.sh +++ b/common/xbps-src/shutils/update_check.sh @@ -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