From d57921ab128d566927b44e87897516d742b644a1 Mon Sep 17 00:00:00 2001 From: Isaac Freund Date: Mon, 17 Aug 2020 11:23:19 +0200 Subject: [PATCH] xbps-src/update_check: add codeberg support --- common/xbps-src/shutils/update_check.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/common/xbps-src/shutils/update_check.sh b/common/xbps-src/shutils/update_check.sh index e8a549ad39b..eb96fc8ada2 100644 --- a/common/xbps-src/shutils/update_check.sh +++ b/common/xbps-src/shutils/update_check.sh @@ -56,7 +56,8 @@ update_check() { *cran.r-project.org/src/contrib*|\ *rubygems.org*|\ *crates.io*|\ - *hg.sr.ht*) + *hg.sr.ht*|\ + *codeberg.org*) continue ;; *) @@ -140,6 +141,10 @@ update_check() { hgsrhtname="$(printf %s "$url" | cut -d/ -f4,5)" url="https://hg.sr.ht/$hgsrhtname/tags" rx='/archive/(v?|\Q'"$pkgname"'\E-)?\K[\d\.]+(?=\.tar\.gz")';; + *codeberg.org*) + codebergname="$(printf %s "$url" | cut -d/ -f4,5)" + url="https://codeberg.org/$codebergname/releases" + rx='/archive/\K[\d\.]+(?=\.tar\.gz)';; esac fi