common/xbps-src/shutils/update_check.sh: tweak url and rx for codeberg
Accommodate for more patterns in distfile urls.
This commit is contained in:
parent
2466fc2e07
commit
2760187144
1 changed files with 2 additions and 2 deletions
|
@ -149,8 +149,8 @@ update_check() {
|
|||
rx='/crates/'${pkgname#rust-}'/\K[0-9.]*(?=/download)' ;;
|
||||
*codeberg.org*)
|
||||
pkgurlname="$(printf %s "$url" | cut -d/ -f4,5)"
|
||||
url="https://codeberg.org/$pkgurlname/releases"
|
||||
rx='/archive/\K[\d.]+(?=\.tar\.gz)' ;;
|
||||
url="https://codeberg.org/$pkgurlname/tags"
|
||||
rx='/archive/(v-?|\Q'"$pkgname"'\E-)?\K[\d.]+(?=\.tar\.gz)' ;;
|
||||
*hg.sr.ht*)
|
||||
pkgurlname="$(printf %s "$url" | cut -d/ -f4,5)"
|
||||
url="https://hg.sr.ht/$pkgurlname/tags"
|
||||
|
|
Loading…
Add table
Reference in a new issue