From 6e128db1e5f5a817dfa807e765abe758c6eebd84 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 18 Sep 2018 11:10:15 +0200 Subject: simplify testing rpm version no more needed to list all point version unless there's a change in them we want to test for (such as 4.14.2) --- Makefile.PL | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Makefile.PL b/Makefile.PL index c8556cd..a423e6b 100755 --- a/Makefile.PL +++ b/Makefile.PL @@ -43,13 +43,12 @@ foreach (qw( 4.12.0 4.13.0 4.14.0 - 4.14.1 4.14.2 )) { my $v = $_; + $cfg{modversion} < $v and last; $v =~ s/\./_/g; print $FH "#define RPM$v\n"; - $cfg{modversion} =~ /^\Q$_/ and last; } print $FH "\n#endif\n"; close($FH); -- cgit v1.2.1