From: Phil Pennock Date: Thu, 25 Oct 2012 03:50:21 +0000 (-0400) Subject: coerce mk_exim_release.pl to accept 4.80.1 X-Git-Url: https://git.exim.org/exim.git/commitdiff_plain/refs/heads/exim-4_80_security coerce mk_exim_release.pl to accept 4.80.1 --- diff --git a/release-process/scripts/mk_exim_release.pl b/release-process/scripts/mk_exim_release.pl index fe18da106..d1e950af1 100755 --- a/release-process/scripts/mk_exim_release.pl +++ b/release-process/scripts/mk_exim_release.pl @@ -23,12 +23,12 @@ sub get_and_check_version { # make sure this looks like a real release version # which should (currently) be 4.xx or 4.xx_RCx - unless ( $release =~ /^(4\.\d\d(?:_RC\d+)?)$/ ) { + unless ( $release =~ /^(4\.\d\d(?:(?:_RC\d+)|\.\d+)?)$/ ) { croak "The given version number does not look right - $release"; } my $full_release = $1; # untainted here... my $trunc_release = $full_release; - $trunc_release =~ s/^(4\.\d\d)(?:_RC\d+)?$/$1/; + $trunc_release =~ s/^(4\.\d\d\.\d+)(?:_RC\d+)?$/$1/; $context->{release} = $full_release; $context->{trelease} = $trunc_release;