Skip to content

Commit aed235e

Browse files
RMG - Make last_version handle smoothly provided RC version numbers
1 parent d04bc98 commit aed235e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Porting/make-rmg-checklist

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,8 @@ my $passthru_headers = qr/^= (?: over | item | back | cut )/xms;
152152
# version used when generating diffs (acknowledgements, Module::CoreList etc)
153153
# 5.36.0 -> 5.34.0
154154
# 5.36.1 -> 5.36.0
155-
my ($major, $minor, $point) = split(/\./, $version);
155+
my ($major, $minor, $point_with_maybe_rc) = split(/\./, $version);
156+
my ($point) = split(/-/, $point_with_maybe_rc);
156157
my $last_version = join('.', $major, ($point == 0 ? ($minor - 2, 0) : ($minor, $point-1)));
157158

158159

0 commit comments

Comments
 (0)