From cc8762d3fbccdcb8d85dea976c8760f5a88b0340 Mon Sep 17 00:00:00 2001 From: Eivind Uggedal Date: Wed, 21 Jan 2015 18:31:17 +0000 Subject: [PATCH] update_check.sh: escape gnome package names. --- common/xbps-src/shutils/update_check.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/xbps-src/shutils/update_check.sh b/common/xbps-src/shutils/update_check.sh index b8f71e91f65..19bca30f0c8 100644 --- a/common/xbps-src/shutils/update_check.sh +++ b/common/xbps-src/shutils/update_check.sh @@ -52,7 +52,7 @@ update_check() { url="https://bitbucket.org/$bbname/downloads" rx='/(get|downloads)/(v?|\Q'"$pkgname"'\E-)?\K[\d\.]+(?=\.tar\.gz")';; *ftp.gnome.org*) - : ${pattern="$pkgname-\K[0-9]\.[0-9]*[02468]\.[0-9.]*[0-9](?=)"} + : ${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";; *kernel.org/pub/linux/kernel/*) rx=linux-'\K'${version%.*}'[\d.]+(?=\.tar\.xz)';;