diff --git a/common/xbps-src/shutils/update_check.sh b/common/xbps-src/shutils/update_check.sh index e278fe90e34..d463fa4fbe9 100644 --- a/common/xbps-src/shutils/update_check.sh +++ b/common/xbps-src/shutils/update_check.sh @@ -55,7 +55,8 @@ update_check() { *kernel.org/pub/linux/kernel/*|\ *cran.r-project.org/src/contrib*|\ *rubygems.org*|\ - *crates.io*) + *crates.io*|\ + *hg.sr.ht*) continue ;; *) @@ -135,6 +136,10 @@ update_check() { *crates.io*) url="https://crates.io/api/v1/crates/${pkgname#rust-}" rx='/crates/'${pkgname#rust-}'/\K[0-9.]*(?=/download)' ;; + *hg.sr.ht*) + 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")';; esac fi