aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Thauvin <nanardon@mandriva.org>2004-08-02 07:14:10 +0000
committerOlivier Thauvin <nanardon@mandriva.org>2004-08-02 07:14:10 +0000
commite7094f4529d70bea41731b7e1ac6d9efca5133de (patch)
treed2ca116a82d5a642eac733cf6d1f507b0ed2712d
parentcac43651e843be88611bc1ff413dea8c1f4e9a6c (diff)
downloadperl-URPM-e7094f4529d70bea41731b7e1ac6d9efca5133de.tar
perl-URPM-e7094f4529d70bea41731b7e1ac6d9efca5133de.tar.gz
perl-URPM-e7094f4529d70bea41731b7e1ac6d9efca5133de.tar.bz2
perl-URPM-e7094f4529d70bea41731b7e1ac6d9efca5133de.tar.xz
perl-URPM-e7094f4529d70bea41731b7e1ac6d9efca5133de.zip
- don't check rpm rpm version but rpm binary version
-rw-r--r--Makefile.PL7
1 files changed, 4 insertions, 3 deletions
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])?$/ ?