From 36274904cf4e13ee94acbea8fb06bbd4be65580b 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 0a624274f50..1f0ed7b1fe4 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/refs/tags/(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*)