From d6553e80c9c2c71549f46433eb1073dd5627f93c Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Fri, 8 Feb 2008 16:55:37 +0000 Subject: fix compiling with RCs --- Makefile.PL | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Makefile.PL') diff --git a/Makefile.PL b/Makefile.PL index e2dc5d4..894ca83 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -17,6 +17,8 @@ unless (defined $rpm_path) { defined $rpm_path or die "Can't find rpm on this system\n"; my $version = `LC_ALL=C $rpm_path --version`; +# fix compiling with RCs: +$version =~ s/-.*//; chomp $version; $version =~ s/(RPM version )|(rpm \(RPM\) )//; my $pversion = eval "v$version"; -- cgit v1.2.1