[Bps-public-commit] r10872 - Shipwright/trunk/lib/Shipwright/Source

sunnavy at bestpractical.com sunnavy at bestpractical.com
Mon Feb 18 02:37:53 EST 2008


Author: sunnavy
Date: Mon Feb 18 02:37:52 2008
New Revision: 10872

Modified:
   Shipwright/trunk/lib/Shipwright/Source/Base.pm

Log:
sometimes we overwrite build_requires part in require.yml before mistakenly

Modified: Shipwright/trunk/lib/Shipwright/Source/Base.pm
==============================================================================
--- Shipwright/trunk/lib/Shipwright/Source/Base.pm	(original)
+++ Shipwright/trunk/lib/Shipwright/Source/Base.pm	Mon Feb 18 02:37:52 2008
@@ -81,8 +81,8 @@
             if (   $source =~ /Module::Build/
                 && $self->name ne 'cpan-Module-Build' )
             {
-                unless ( $require->{build_requires}{'Module::Build'} ) {
-                    $require->{build_requires} = { 'Module::Build' => 0 };
+                unless ( defined $require->{build_requires}{'Module::Build'} ) {
+                    $require->{build_requires}{'Module::Build'} = 0;
                 }
             }
 
@@ -130,7 +130,7 @@
 #            }
 
             Shipwright::Util->run( [ 'make', 'clean' ] );
-            Shipwright::Util->run( [ 'rm', 'Makefile.old' ] );
+            Shipwright::Util->run( [ 'rm',   'Makefile.old' ] );
         }
 
         for my $type (qw/requires recommends build_requires/) {



More information about the Bps-public-commit mailing list