[Bps-public-commit] r16040 - Shipwright/trunk/lib/Shipwright/Source
alexmv at bestpractical.com
alexmv at bestpractical.com
Tue Sep 23 17:21:08 EDT 2008
Author: alexmv
Date: Tue Sep 23 17:21:06 2008
New Revision: 16040
Modified:
Shipwright/trunk/lib/Shipwright/Source/Base.pm
Log:
* Cope with 'Modulename' => '' syntax
Modified: Shipwright/trunk/lib/Shipwright/Source/Base.pm
==============================================================================
--- Shipwright/trunk/lib/Shipwright/Source/Base.pm (original)
+++ Shipwright/trunk/lib/Shipwright/Source/Base.pm Tue Sep 23 17:21:06 2008
@@ -159,9 +159,9 @@
# ],
# );
for ( my $j = 0; $j < @{$mods->[$i]}; $j++ ) {
- if ( $mods->[$i][$j+1] =~ /^[\d\.]+$/ ) {
+ if ( $mods->[$i][$j+1] =~ /^[\d\.]*$/ ) {
$shipwright_req->{recommends}{$mods->[$i][$j]}
- = $mods->[$i][$j+1];
+ = $mods->[$i][$j+1] || 0;
$j++;
}
else {
@@ -172,9 +172,9 @@
next;
}
- if ( $mods->[$i+1] =~ /^[\d\.]+$/ ) {
+ if ( $mods->[$i+1] =~ /^[\d\.]*$/ ) {
# index $i+1 is a version
- $shipwright_req->{recommends}{$mods->[$i]} = $mods->[$i+1];
+ $shipwright_req->{recommends}{$mods->[$i]} = $mods->[$i+1] || 0;
$i++;
}
else {
More information about the Bps-public-commit
mailing list