From 1f2de60db9bdf6060d568f9be4333061505d629c Mon Sep 17 00:00:00 2001 From: Greg Sabino Mullane Date: Sat, 11 Jul 2009 22:02:52 -0400 Subject: Don't hardcode the English translation fallback. --- check_postgres.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'check_postgres.pl') diff --git a/check_postgres.pl b/check_postgres.pl index 559c9607d..7e1105e06 100755 --- a/check_postgres.pl +++ b/check_postgres.pl @@ -5665,11 +5665,11 @@ sub check_checkpoint { ndie msg('checkpoint-badver2'); } - ## See pgsql/src/bin/pg_controldata/po/* my $regex = msg('checkpoint-po'); if ($res !~ /$regex\s*(.+)/) { ## no critic (ProhibitUnusedCapture) ## Just in case, check the English one as well - if ($res !~ /Time of latest checkpoint:\s*(.+)/) { + $regex = msg('checkpoint-po', 'en'); + if ($res !~ /$regex\s*(.+)/) { ndie msg('checkpoint-noregex', $dir); } } -- cgit v1.2.3