From 0813c61332b47ccbfe6c8367e9ae689f9e0edbf6 Mon Sep 17 00:00:00 2001 From: Michael Aldridge Date: Fri, 14 Jul 2017 21:24:17 -0700 Subject: [PATCH] google-chrome: more robust update check --- srcpkgs/google-chrome/update | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/srcpkgs/google-chrome/update b/srcpkgs/google-chrome/update index 0074c4f3a66..5b8da607734 100644 --- a/srcpkgs/google-chrome/update +++ b/srcpkgs/google-chrome/update @@ -1,3 +1,7 @@ -# This is the only site I've reliably found the version number on -site=https://www.whatismybrowser.com/guides/the-latest-version/chrome -pattern="\K\d+\.\d+\.\d+\.\d+(?=<\/h2>)" +# This site is an official source of version numbers, but it is not +# obviously associated as such. We save bytes here and request the +# CSV, and then only the row containing the stable version number for +# the Linux desktop build. As a result the regex can be pretty simple +# to just grab the version number out of the correct column. +site="https://omahaproxy.appspot.com/all?os=linux&channel=stable" +pattern="stable,\K[\d.]+(?=,)"