From e7094f4529d70bea41731b7e1ac6d9efca5133de Mon Sep 17 00:00:00 2001 From: Olivier Thauvin Date: Mon, 2 Aug 2004 07:14:10 +0000 Subject: - don't check rpm rpm version but rpm binary version --- Makefile.PL | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Makefile.PL') diff --git a/Makefile.PL b/Makefile.PL index a8923dd..fce2d3b 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -1,8 +1,9 @@ use ExtUtils::MakeMaker; -my $version = `rpm -q --qf '%{VERSION}' rpm`; -$version =~ /^(?:[4-9]|\d{2})/ - or die "Unable to build URPM with too old (or undetected) rpm version $version\n"; +my $version = `rpm --version`; +$version =~ s/RPM version //; +$version =~ /^(?:[4-9]|\d{2})/ + or die "unable to build URPM with too old (or undetected) rpm version $version"; #- search for correct libraries to use (above 4.0.3 is right). my $libs = $version =~ /^4\.0(?:\.[012])?$/ ? -- cgit v1.2.1