From 38fe26e2021434697c3c25adce0d9848f87c1610 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. Not sure if we have packages that depend on using gitlab repo as homepage for a version check --- 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*)