aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2018-09-18 11:10:15 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2018-09-18 12:07:33 +0200
commit6e128db1e5f5a817dfa807e765abe758c6eebd84 (patch)
tree5e9acd2cbce34f3aabb140ac144e565713353f94
parent18670bc273165acfefd4ea1ee57cff3825a683d6 (diff)
downloadperl-URPM-6e128db1e5f5a817dfa807e765abe758c6eebd84.tar
perl-URPM-6e128db1e5f5a817dfa807e765abe758c6eebd84.tar.gz
perl-URPM-6e128db1e5f5a817dfa807e765abe758c6eebd84.tar.bz2
perl-URPM-6e128db1e5f5a817dfa807e765abe758c6eebd84.tar.xz
perl-URPM-6e128db1e5f5a817dfa807e765abe758c6eebd84.zip
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)
-rwxr-xr-xMakefile.PL3
1 files changed, 1 insertions, 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);