Skip to content

Instantly share code, notes, and snippets.

@Gottox
Created November 29, 2014 16:53
Show Gist options
  • Save Gottox/dd3c2ca2a412d0fc57fd to your computer and use it in GitHub Desktop.
Save Gottox/dd3c2ca2a412d0fc57fd to your computer and use it in GitHub Desktop.
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