From b996b25d67508e728dc0fb3794a99f8da569d36f Mon Sep 17 00:00:00 2001 From: John Date: Wed, 23 May 2018 23:34:29 +0200 Subject: [PATCH] common/update_check: add gnome.gitlab.org Closes #14671. Signed-off-by: Enno Boland --- common/xbps-src/shutils/update_check.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/xbps-src/shutils/update_check.sh b/common/xbps-src/shutils/update_check.sh index 25289f8ef4..25b43014ec 100644 --- a/common/xbps-src/shutils/update_check.sh +++ b/common/xbps-src/shutils/update_check.sh @@ -48,9 +48,9 @@ update_check() { githubname="$(printf %s "$url" | cut -d/ -f4,5)" url="https://github.com/$githubname/tags" rx='/archive/(v?|\Q'"$pkgname"'\E-)?\K[\d\.]+(?=\.tar\.gz")';; - *gitlab.com*) - gitlabname="$(printf %s "$url" | cut -d/ -f4,5)" - url="https://gitlab.com/$gitlabname/tags" + *gitlab.com*|*gitlab.gnome.org*) + gitlaburl="$(printf %s "$url" | cut -d/ -f1-5)" + url="$gitlaburl/tags" rx='/archive/[^/]+/\Q'"$pkgname"'\E-v?\K[\d\.]+(?=\.tar\.gz")';; *bitbucket.org*) bbname="$(printf %s "$url" | cut -d/ -f4,5)"