changeset 407:8d7335014437

Fix "check updates" regex * Output is whitespace aligned table, so shorter repo names have trailing space * Some versions are `1:0.9.3-26.el8` or have `+gitrev`
author IBBoard <dev@ibboard.co.uk>
date Wed, 25 May 2022 20:31:39 +0100
parents b59e6ce49e24
children 8a2efdcc5a98
files .hgtags manifests/templates.pp
diffstat 2 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/.hgtags	Wed May 25 20:31:39 2022 +0100
@@ -0,0 +1,1 @@
+22e45bb5ea9799bd362a23edc0ab497ea256c900 pre-ubuntu
--- a/manifests/templates.pp	Wed Apr 20 20:41:07 2022 +0100
+++ b/manifests/templates.pp	Wed May 25 20:31:39 2022 +0100
@@ -921,7 +921,7 @@
 	}
 	# Notify of available updates
 	cron { 'check-yum-updates':
-		command => '/usr/bin/yum check-update | grep -E "^[^ ]+ +[0-9a-z_\.-]+ +[^ ]+$"',
+		command => '/usr/bin/yum check-update | grep -E "^[^ ]+ +[0-9a-z_:\.\+-]+ +[^ ]+ *$"',
 		hour => '4',
 		minute => '30',
 		weekday => '0-6/3', #Sunday, Wednesday and Saturday morning