Author: kwilliams
Date: Thu Jul 26 05:36:55 2007
New Revision: 9801

Modified:
   Module-Build/trunk/Changes
   Module-Build/trunk/lib/Module/Build/Base.pm

Log:
Die when process_PL_files has a failure

Modified: Module-Build/trunk/Changes
==============================================================================
--- Module-Build/trunk/Changes  (original)
+++ Module-Build/trunk/Changes  Thu Jul 26 05:36:55 2007
@@ -1,5 +1,9 @@
 Revision history for Perl extension Module::Build.
 
+ - If a *.PL file ended abnormally during the build, processing should
+   have stopped, but it didn't.  Fixed. [Matthew Cast and David
+   Golden]
+
  - Module::Build::Compat adds "require 5.XXXXX" to Makefile.PL when 
    'perl' is specified as a 'requires' prerequisite [David Golden]
 

Modified: Module-Build/trunk/lib/Module/Build/Base.pm
==============================================================================
--- Module-Build/trunk/lib/Module/Build/Base.pm (original)
+++ Module-Build/trunk/lib/Module/Build/Base.pm Thu Jul 26 05:36:55 2007
@@ -2256,7 +2256,7 @@
   
   while (my ($file, $to) = each %$files) {
     unless ($self->up_to_date( $file, $to )) {
-      $self->run_perl_script($file, [], [EMAIL PROTECTED]);
+      $self->run_perl_script($file, [], [EMAIL PROTECTED]) or die "$file 
failed";
       $self->add_to_cleanup(@$to);
     }
   }

Reply via email to