Ignore:
Timestamp:
Nov 21, 2004, 11:01:59 PM (19 years ago)
Author:
joergs
Message:

optimized: skip building rpms that do already exist in the current version

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/technical/common/build/buildall.pl

    r694 r695  
    4040getopts('xb:d:');
    4141
    42 
     42my $skipped_last = 0;
    4343
    4444if (!$opt_b && !$opt_d)  {
     
    105105  $mypath = $src_root.$ArrayofBuilds[$i][0];
    106106
    107   if ($ArrayofBuilds[$i][2])
     107  if( $ArrayofBuilds[$i][2] && !$skipped_last )
    108108    {
    109109      $ENV{'BUILD_MODE'}=$ArrayofBuilds[$i][2];
     
    111111  else
    112112    {
    113       $ENV{'BUILD_MODE'}="--clean";
     113      $ENV{'BUILD_MODE'}="--verify";
    114114    }
    115115  $ENV{'BUILD_DIST'}=$ArrayofBuilds[$i][1];
     
    160160        print LOG_FD if $do_log;
    161161  }
    162   close PIPE; my $retval=$?;
     162  close PIPE; my $retval=$?>>8;
    163163  close LOG_FD if $do_log;
    164164 
    165   if ( $retval == 0 )
    166    {
     165  if ( $retval == 0 ) {
    167166     $ArrayofBuilds[$i][3] = "OK";
    168167     print"******                                                      ******\n";
    169168     print"******   building of $ArrayofBuilds[$i][0]: OK                    \n" ;
    170169     print"******                                                      ******\n";
    171    }
    172   else
    173    {
     170  } elsif ( $retval == 1 ) {
     171        $ArrayofBuilds[$i][3] = "skipped";
     172        $skipped_last = 1;
     173  } else {
    174174     $ArrayofBuilds[$i][3] = "*FAILED*";
    175175     print"******                                                      ******\n";
Note: See TracChangeset for help on using the changeset viewer.