[Bps-public-commit] r15481 - in Shipwright/trunk: lib/Shipwright/Backend

sunnavy at bestpractical.com sunnavy at bestpractical.com
Tue Aug 26 10:53:33 EDT 2008


Author: sunnavy
Date: Tue Aug 26 10:53:31 2008
New Revision: 15481

Modified:
   Shipwright/trunk/   (props changed)
   Shipwright/trunk/lib/Shipwright/Backend/Base.pm

Log:
 r16101 at sunnavys-mb:  sunnavy | 2008-08-26 22:52:21 +0800
 first_cpan_index can be negative


Modified: Shipwright/trunk/lib/Shipwright/Backend/Base.pm
==============================================================================
--- Shipwright/trunk/lib/Shipwright/Backend/Base.pm	(original)
+++ Shipwright/trunk/lib/Shipwright/Backend/Base.pm	Tue Aug 26 10:53:31 2008
@@ -317,6 +317,7 @@
         if ( grep { $_ eq $maker } @$order ) {
             @$order = grep { $_ ne $maker } @$order;
             my $first_cpan_index = firstidx { /^cpan-/ } @$order;
+            $first_cpan_index = scalar @$order if $first_cpan_index == -1;
             splice @$order, $first_cpan_index, 0, $maker;
 
             if ( $maker eq 'cpan-Module-Build' ) {



More information about the Bps-public-commit mailing list