summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrsiddall <rsiddall>2008-11-18 02:56:20 +0000
committerrsiddall <rsiddall>2008-11-18 02:56:20 +0000
commit4f5584e7acf1ad9ef9d4e144678e25ec4df98f62 (patch)
tree7901661e98719f27219befc171bc3d365dd505e3
parent3908d6e78407209ca3ecc7b4843d70275a688e00 (diff)
Now handles hyphenated Perl requirements as well as those in parentheses, and
handles more version relation types.
-rwxr-xr-xinstall/rpm/rpm2Bundle7
1 files changed, 4 insertions, 3 deletions
diff --git a/install/rpm/rpm2Bundle b/install/rpm/rpm2Bundle
index 38a7ac207..469c27b0f 100755
--- a/install/rpm/rpm2Bundle
+++ b/install/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;
}
}