mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-28 16:32:57 +02:00
xbps-src: improve update-check pattern for GitHub
This commit is contained in:
parent
3d9fe01989
commit
cd51ef0c0e
1 changed files with 1 additions and 1 deletions
|
@ -139,7 +139,7 @@ update_check() {
|
||||||
*github.com*)
|
*github.com*)
|
||||||
pkgurlname="$(printf %s "$url" | cut -d/ -f4,5)"
|
pkgurlname="$(printf %s "$url" | cut -d/ -f4,5)"
|
||||||
url="https://github.com/$pkgurlname/tags"
|
url="https://github.com/$pkgurlname/tags"
|
||||||
rx='/archive/refs/tags/(v?|\Q'"$pkgname"'\E[-_])?\K[\d.]+(?=\.tar\.gz")';;
|
rx='/archive/refs/tags/(\Q'"$pkgname"'\E|[-_v])*\K[\d.]+(?=\.tar\.gz")';;
|
||||||
*//gitlab.*|*code.videolan.org*)
|
*//gitlab.*|*code.videolan.org*)
|
||||||
case "$url" in
|
case "$url" in
|
||||||
*/-/*) pkgurlname="$(printf %s "$url" | sed -e 's%/-/.*%%g; s%/$%%')";;
|
*/-/*) pkgurlname="$(printf %s "$url" | sed -e 's%/-/.*%%g; s%/$%%')";;
|
||||||
|
|
Loading…
Add table
Reference in a new issue