mirror of
https://github.com/void-linux/void-packages.git
synced 2025-04-15 21:57:02 +02:00
common/xbps-src/shutils/update_check.sh: tweak url and rx for git.sr.ht
Accommodate for tarballs in refs named after commit hash.
This commit is contained in:
parent
e46b70f723
commit
5f0e7218eb
1 changed files with 2 additions and 2 deletions
|
@ -167,8 +167,8 @@ update_check() {
|
|||
rx='/archive/(v?|\Q'"$pkgname"'\E-)?\K[\d.]+(?=\.tar\.gz")';;
|
||||
*git.sr.ht*)
|
||||
pkgurlname="$(printf %s "$url" | cut -d/ -f4,5)"
|
||||
url="https://git.sr.ht/$pkgurlname/refs"
|
||||
rx='/archive/(v?|\Q'"$pkgname"'\E-)?\K[\d.]+(?=\.tar\.gz")';;
|
||||
url="https://git.sr.ht/$pkgurlname/refs/rss.xml"
|
||||
rx='<guid>\Q'"${url%/*}"'\E/(v-?|\Q'"$pkgname"'\E-)?\K[\d.]+(?=</guid>)' ;;
|
||||
*pkgs.fedoraproject.org*)
|
||||
url="https://pkgs.fedoraproject.org/repo/pkgs/$pkgname" ;;
|
||||
esac
|
||||
|
|
Loading…
Add table
Reference in a new issue