## The format is X.Y.Z [optional message]
my $versionre = qr{((\d+)\.(\d+)\.(\d+))\s*(.*)};
my ($cversion,$cmajor,$cminor,$crevision,$cmessage) = ('','','','','');
+ my $found = 0;
## Try to fetch the current version from the web
for my $meth (@get_methods) {
if ($program eq 'Postgres') {
$cmajor = {};
while ($info =~ /<title>(\d+)\.(\d+)\.(\d+)/g) {
+ $found = 1;
$cmajor->{"$1.$2"} = $3;
}
}
elsif ($info =~ $versionre) {
+ $found = 1;
($cversion,$cmajor,$cminor,$crevision,$cmessage) = ($1, int $2, int $3, int $4, $5);
if ($VERBOSE >= 1) {
$info =~ s/\s+$//s;
}
}
};
- last if $cmajor;
+ last if $found;
}
- if (! $cmajor) {
+ if (! $found) {
add_unknown msg('new-ver-nocver', $program);
return;
}
Add new action 'hot_standby_delay' (Nicolas Thauvin)
Add cache-busting for the version-grabbing utilities.
+ Fix problem with going to next method for new_version_pg
+ (Greg Sabino Mullane, reported by Hywel Mallett in bug #65)
=item B<Version 2.15.4> January 3, 2011