From 56b6e7b240e05fe39d83e63157ec6150908da8a8 Mon Sep 17 00:00:00 2001 From: maxice8 Date: Thu, 15 Nov 2018 18:41:53 -0200 Subject: [PATCH] shutils/update_check.sh: be more strict with rubygem update checks try to match the whole line from href="/gems/${pkgname#ruby-}/versions/[VERSION NUMBERS]" matching until the quote avoids problems like the travis gem that has special versions like 1.8.10.travis.921.11 before it would match until 1.8.10., now it doesn't match. --- 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 9c4643dd34a..4f3878e2761 100644 --- a/common/xbps-src/shutils/update_check.sh +++ b/common/xbps-src/shutils/update_check.sh @@ -68,7 +68,7 @@ update_check() { rx='href="\K[\d\.]+(?=/")';; *rubygems.org*) url="https://rubygems.org/gems/${pkgname#ruby-}" - rx='versions/\K[\d\.]+' ;; + rx='href="/gems/'${pkgname#ruby-}'/versions/\K[\d\.]*(?=")' ;; esac fi