diff options
author | Olivier Thauvin <nanardon@mandriva.org> | 2004-08-02 07:14:10 +0000 |
---|---|---|
committer | Olivier Thauvin <nanardon@mandriva.org> | 2004-08-02 07:14:10 +0000 |
commit | e7094f4529d70bea41731b7e1ac6d9efca5133de (patch) | |
tree | d2ca116a82d5a642eac733cf6d1f507b0ed2712d /Makefile.PL | |
parent | cac43651e843be88611bc1ff413dea8c1f4e9a6c (diff) | |
download | perl-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
Diffstat (limited to 'Makefile.PL')
-rw-r--r-- | Makefile.PL | 7 |
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])?$/ ? |