Richard Pospesel pushed to branch maint-12.0 at The Tor Project / Applications / tor-browser-build

Commits:

1 changed file:

Changes:

  • tools/dmg2mar
    ... ... @@ -106,7 +106,11 @@ sub get_dmg_files_from_sha256sums {
    106 106
     sub convert_files {
    
    107 107
         my ($channel) = @_;
    
    108 108
         my $pm = Parallel::ForkManager->new(get_nbprocs);
    
    109
    -    $pm->run_on_finish(sub { print "Finished $_[2]\n" });
    
    109
    +    $pm->run_on_finish(
    
    110
    +      sub {
    
    111
    +        exit_error "Failed while running $_[2]" unless $_[1] == 0;
    
    112
    +        print "Finished $_[2]\n";
    
    113
    +      });
    
    110 114
         foreach my $file (get_dmg_files_from_sha256sums) {
    
    111 115
             # The 'ja' locale is a special case: it is called 'ja-JP-mac'
    
    112 116
             # internally on OSX, but the dmg file still uses 'ja' to avoid