diff options
author | rsiddall <rsiddall> | 2008-11-18 02:56:51 +0000 |
---|---|---|
committer | rsiddall <rsiddall> | 2008-11-18 02:56:51 +0000 |
commit | 7bbecbdec002454c66afbc56003c0456c33f81be (patch) | |
tree | 2f815a35b7f7b27e39c9b89e5400d47e52a321d1 /rpm/rpm2Bundle | |
parent | 8a00b4c10743a314f4a298879141b60d6096eb3b (diff) |
Now handles hyphenated Perl requirements as well as those in parentheses, and
handles more version relation types.
Diffstat (limited to 'rpm/rpm2Bundle')
-rwxr-xr-x | rpm/rpm2Bundle | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/rpm/rpm2Bundle b/rpm/rpm2Bundle index 38a7ac207..469c27b0f 100755 --- a/rpm/rpm2Bundle +++ b/rpm/rpm2Bundle @@ -39,7 +39,8 @@ foreach my $rawrpm (@ARGV) { my %mods; foreach (@deps) { - if (/^perl\((.*)\)\s*(>=\s+([\d\.]+))?$/) { + if (/^perl\((.*)\)\s*((>=|=|<=)\s+([\d\.]+))?$/ + || /^perl-(.*)\s*((>=|=|<=)\s+([\d\.]+))?$/) { next if exists($suppress{$1}); my @parts = split /::/, $1; if (scalar @parts > 1) { @@ -47,10 +48,10 @@ foreach my $rawrpm (@ARGV) { } if ($verbose) { print STDERR "$1"; - print STDERR " >= $3" if $3; + print STDERR " $3 $4" if $4; print STDERR "\n"; } - $mods{$1} = $3 ? $3 : undef; + $mods{$1} = $4 ? $4 : undef; } } |