From c845693ffb70c05be0a8973466b2c5a1c0e5e83c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Tue, 6 Sep 2022 18:34:18 +0700 Subject: [PATCH] update-check: update all gnome case to have both ftp. and download. --- common/xbps-src/shutils/update_check.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/common/xbps-src/shutils/update_check.sh b/common/xbps-src/shutils/update_check.sh index 17fa67fda1d..e7193c98ffa 100644 --- a/common/xbps-src/shutils/update_check.sh +++ b/common/xbps-src/shutils/update_check.sh @@ -24,8 +24,8 @@ update_check() { if [ -z "$site" ]; then case "$distfiles" in - # only consider versions those exist in ftp.gnome.org - *ftp.gnome.org*) ;; + # special case those sites provide better source elsewhere + *ftp.gnome.org*|*download.gnome.org*) ;; *archive.xfce.org*) ;; *) printf '%s\n' "$homepage" ;; @@ -58,7 +58,7 @@ update_check() { *github.com*|\ *//gitlab.*|\ *bitbucket.org*|\ - *ftp.gnome.org*|\ + *ftp.gnome.org*|*download.gnome.org*|\ *archive.xfce.org*|\ *kernel.org/pub/linux/kernel/*|\ *cran.r-project.org/src/contrib*|\ @@ -137,7 +137,7 @@ update_check() { url="https://bitbucket.org/$pkgurlname/downloads" rx='/(get|downloads)/(v?|\Q'"$pkgname"'\E-)?\K[\d.]+(?=\.tar)';; *ftp.gnome.org*|*download.gnome.org*) - : ${pattern="\Q$pkgname\E-\K(0|[13]\.[0-9]*[02468]|[4-9][0-9]+)\.[0-9.]*[0-9](?=)"} + : ${pattern="\Q$pkgname\E-\K(0|[13]\.[0-9]*[02468]|[4-9][0-9]+)\.[0-9.]*[0-9](?=.tar)"} url="https://download.gnome.org/sources/$pkgname/cache.json";; *archive.xfce.org*) : ${pattern="\Q$pkgname\E-\K((([4-9]|([1-9][0-9]+))\.[0-9]*[02468]\.[0-9.]*[0-9])|([0-3]\.[0-9.]*))(?=.tar)"}