aboutsummaryrefslogtreecommitdiffstats
path: root/perl.req
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-10-17 10:30:46 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-10-17 10:30:46 +0000
commite902995cc13f740bedc7af85e1b4c4c40d5080b2 (patch)
treeb8c556efbb232793097d8e23a9e221351f6c0887 /perl.req
parent39931bc4213bb8a6b4fd93a17399151cf1518d40 (diff)
downloadrpm-setup-e902995cc13f740bedc7af85e1b4c4c40d5080b2.tar
rpm-setup-e902995cc13f740bedc7af85e1b4c4c40d5080b2.tar.gz
rpm-setup-e902995cc13f740bedc7af85e1b4c4c40d5080b2.tar.bz2
rpm-setup-e902995cc13f740bedc7af85e1b4c4c40d5080b2.tar.xz
rpm-setup-e902995cc13f740bedc7af85e1b4c4c40d5080b2.zip
Ignore perl version requires
Diffstat (limited to 'perl.req')
-rwxr-xr-xperl.req18
1 files changed, 5 insertions, 13 deletions
diff --git a/perl.req b/perl.req
index fd801f7..888bfaf 100755
--- a/perl.req
+++ b/perl.req
@@ -203,19 +203,11 @@ sub process_file {
$module =~ s/\(\s*\)$//;
- if ( $module =~ m/^[0-9._]+$/ ) {
- # if module is a number then both require and use interpret that
- # to mean that a particular version of perl is specified
-
- if ($module =~ /5.00/) {
- print "perl >= 0:$module\n";
- next;
- }
- else {
- print "perl >= 1:$module\n";
- next;
- }
- };
+ # if module is a number then both require and use interpret that
+ # to mean that a particular version of perl is specified. Don't
+ # add a dependency, though, since the rpm will already require
+ # perl-base at the build version (via find-requires)
+ next if $module =~ /^v?\d/;
# ph files do not use the package name inside the file.
# perlmodlib documentation says: