-
-
Save Gottox/dd3c2ca2a412d0fc57fd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/common/xbps-src/shutils/update_check.sh b/common/xbps-src/shutils/update_check.sh | |
index 5834ea7..b86c7a3 100644 | |
--- a/common/xbps-src/shutils/update_check.sh | |
+++ b/common/xbps-src/shutils/update_check.sh | |
@@ -43,6 +43,9 @@ update_check() { | |
bbname="$(printf %s "$url" | cut -d/ -f4,5)" | |
url="https://bitbucket.org/$bbname/downloads" | |
rx='/(get|downloads)/(v?|\Q'"$update_pkgname"'\E-)?\K[\d\.]+(?=\.tar\.gz")';; | |
+ *ftp.gnome.org*) | |
+ : ${update_pattern="$update_pkgname-\K[0-9].[0-9]*[02468].[.0-9]*(?=)"} | |
+ url="http://ftp.gnome.org/pub/GNOME/sources/$update_pkgname/cache.json";; | |
esac | |
fi | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment