[freeside-commits] freeside/rpm rpm2Bundle,1.1,1.2
Richard Siddall
rsiddall at wavetail.420.am
Mon Nov 17 18:56:53 PST 2008
Update of /home/cvs/cvsroot/freeside/rpm
In directory wavetail.420.am:/tmp/cvs-serv32329/rpm
Modified Files:
rpm2Bundle
Log Message:
Now handles hyphenated Perl requirements as well as those in parentheses, and
handles more version relation types.
Index: rpm2Bundle
===================================================================
RCS file: /home/cvs/cvsroot/freeside/rpm/rpm2Bundle,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- rpm2Bundle 15 Dec 2007 22:47:04 -0000 1.1
+++ rpm2Bundle 18 Nov 2008 02:56:51 -0000 1.2
@@ -39,7 +39,8 @@
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 @@
}
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;
}
}
More information about the freeside-commits
mailing list