From 54a0ee60730839c3e461b3e81b188f22a41321cc Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Wed, 29 Apr 2020 05:55:26 +0200 Subject: fix comparing version when using a fixup rpm release force using a version object rationale: - 4.12.0.2 < 4.12.90 will wrongly pass - v4.12.0.2 < 4.12.90 will check as we expect --- Makefile.PL | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile.PL b/Makefile.PL index b10f56e..080003d 100755 --- a/Makefile.PL +++ b/Makefile.PL @@ -47,7 +47,8 @@ foreach (qw( 4.14.2 )) { my $v = $_; - $cfg{modversion} < $v and last; + my $vobj = version->declare("v$_"); + $cfg{modversion} < $vobj and last; $v =~ s/\./_/g; print $FH "#define RPM$v\n"; } -- cgit v1.2.1