From c2fb907bf7753b69972e94962680bbd990654bcf Mon Sep 17 00:00:00 2001 From: John Date: Mon, 15 Mar 2021 19:12:50 +0100 Subject: [PATCH] xbps-src/shutils/update_check.sh: change gitlab check to handle subgroups The `/-/` sequence is always between e.g. archive and the repo path, so this should work reliably for distfiles. If gitlab is used only as a homepage, this still wroks if homepage points to the base repo (which it usually does) --- common/xbps-src/shutils/update_check.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/xbps-src/shutils/update_check.sh b/common/xbps-src/shutils/update_check.sh index 57077de58b81..a8bca326f89c 100644 --- a/common/xbps-src/shutils/update_check.sh +++ b/common/xbps-src/shutils/update_check.sh @@ -123,7 +123,7 @@ update_check() { url="https://github.com/$pkgurlname/tags" rx='/archive/(v?|\Q'"$pkgname"'\E-)?\K[\d\.]+(?=\.tar\.gz")';; *//gitlab.*) - pkgurlname="$(printf %s "$url" | cut -d/ -f1-5)" + pkgurlname="$(printf %s "$url" | sed 's%/-/*%%g')" url="$pkgurlname/tags" rx='/archive/[^/]+/\Q'"$pkgname"'\E-v?\K[\d\.]+(?=\.tar\.gz")';; *bitbucket.org*)