From 1a4835220f31de4ca9a3300f5e6f6a98bad318fc Mon Sep 17 00:00:00 2001 From: tv Date: Sat, 13 Sep 2014 23:18:35 +0000 Subject: fix build with RCs of rpm git-svn-id: svn+ssh://haiku.zarb.org/home/projects/rpm4/svn/trunk@252 971eb68f-4bfb-0310-8326-d2484c010a4c --- RPM4/Makefile.PL | 2 +- RPM4/NEWS | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/RPM4/Makefile.PL b/RPM4/Makefile.PL index c6bd6e6..7e7b34a 100644 --- a/RPM4/Makefile.PL +++ b/RPM4/Makefile.PL @@ -5,7 +5,7 @@ use ExtUtils::MakeMaker; use Getopt::Long; #- require at least rpm 4.8 -my $rpm_version = `LC_ALL=C rpm --version` =~ /version ([0-9.]+)(?:-beta.*)?$/ ? version->new("v$1") : (); +my $rpm_version = `LC_ALL=C rpm --version` =~ /version ([0-9.]+)(?:-(?:beta|rc).*)?$/ ? version->new("v$1") : (); $rpm_version ge 4.8.0 or die <