diff options
-rw-r--r-- | RPM4/NEWS | 1 | ||||
-rw-r--r-- | RPM4/src/Makefile.PL | 4 |
2 files changed, 4 insertions, 1 deletions
@@ -1,3 +1,4 @@ +- fix comparing version when using a fixup rpm release such as 4.12.0.2 - fix detecting unlisted rpm versions - skip installsrpm tests on FreeBSD < 10 diff --git a/RPM4/src/Makefile.PL b/RPM4/src/Makefile.PL index 89dc752..8aacf15 100644 --- a/RPM4/src/Makefile.PL +++ b/RPM4/src/Makefile.PL @@ -4,6 +4,7 @@ use ExtUtils::MakeMaker; use ExtUtils::PkgConfig; use Getopt::Long; +use version; my $rpmv; GetOptions( @@ -40,7 +41,8 @@ foreach (qw( 4.15.0 )) { my $v = $_; - $rpmv < $v and last; + my $vobj = version->declare("v$_"); + $rpmv < $vobj and last; $v =~ s/\./_/g; print $FH "#define RPM$v\n"; $rpmv =~ /^\Q$_/ and last; |