xbps-src: update-check: allow any compression on bitbucket

This commit is contained in:
Piotr Wójcik 2018-03-24 18:30:25 +01:00 committed by Enno Boland
parent 618a976426
commit 02049148bf
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ update_check() {
*bitbucket.org*)
bbname="$(printf %s "$url" | cut -d/ -f4,5)"
url="https://bitbucket.org/$bbname/downloads"
rx='/(get|downloads)/(v?|\Q'"$pkgname"'\E-)?\K[\d\.]+(?=\.tar\.gz")';;
rx='/(get|downloads)/(v?|\Q'"$pkgname"'\E-)?\K[\d\.]+(?=\.tar)';;
*ftp.gnome.org*)
: ${pattern="\Q$pkgname\E-\K[0-9]\.[0-9]*[02468]\.[0-9.]*[0-9](?=)"}
url="http://ftp.gnome.org/pub/GNOME/sources/$pkgname/cache.json";;