update_check.sh: support for kernels

This commit is contained in:
Eivind Uggedal 2014-11-30 19:29:46 +00:00
parent 848bfbb27d
commit 1a3b512069
1 changed files with 2 additions and 0 deletions

View File

@ -46,6 +46,8 @@ update_check() {
*ftp.gnome.org*)
: ${update_pattern="$update_pkgname-\K[0-9]\.[0-9]*[02468]\.[0-9.]*[0-9](?=)"}
url="http://ftp.gnome.org/pub/GNOME/sources/$update_pkgname/cache.json";;
*kernel.org/pub/linux/kernel/*)
rx=linux-'\K'${version%.*}'[\d.]+(?=\.tar\.xz)';;
esac
fi