Changeset 26289 for trunk/pstamp/scripts/pstamp_check_dependents.pl
- Timestamp:
- Nov 29, 2009, 3:17:29 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/pstamp/scripts/pstamp_check_dependents.pl (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pstamp/scripts/pstamp_check_dependents.pl
r25957 r26289 25 25 use PS::IPP::PStamp::Job qw( :standard ); 26 26 27 my ( $dep_id, $dep_state, $stage, $stage_id, $imagedb, $ rlabel, $no_magic, $dbname, $dbserver);27 my ( $dep_id, $dep_state, $stage, $stage_id, $imagedb, $no_magic, $dbname, $dbserver); 28 28 my ( $no_update, $verbose, $save_temps, $logfile); 29 29 … … 34 34 'stage_id=s' => \$stage_id, 35 35 'imagedb=s' => \$imagedb, 36 'rlabel=s' => \$rlabel,37 36 'no-magic=s' => \$no_magic, 38 37 'dbname=s' => \$dbname, … … 46 45 pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV; 47 46 48 die "--dep_id --state --stage --stage_id --imagedb and --rlabelare requried \n"49 if !$dep_id or !$dep_state or !$stage or !$stage_id or !$imagedb or !$rlabel;47 die "--dep_id --state --stage --stage_id and --imagedb are requried \n" 48 if !$dep_id or !$dep_state or !$stage or !$stage_id or !$imagedb; 50 49 51 50 my $ipprc = PS::IPP::Config->new(); # IPP Configuration … … 103 102 } else { 104 103 105 # XXX: TODO set label to the "standard" update value106 107 104 # don't update if in runs are in state goto_cleaned, wait for clean to finish 108 105 if ($state eq "cleaned") { 109 runcommand("$chiptool -dbname $imagedb -chip_id $stage_id -updaterun -set_state update ");110 } 111 112 # don't update yet if magicDSRuns are in state goto_ purged, wait for purge to finish113 if ($magic_ds_state eq " purged") {106 runcommand("$chiptool -dbname $imagedb -chip_id $stage_id -updaterun -set_state update -set_label update"); 107 } 108 109 # don't update yet if magicDSRuns are in state goto_cleaned, wait for purge to finish 110 if ($magic_ds_state eq "cleaned") { 114 111 my $magic_ds_id = $run_state->{magic_ds_id}; 115 112 runcommand("$magicdstool -dbname $imagedb -magic_ds_id $magic_ds_id -updaterun -set_state new"); … … 145 142 } else { 146 143 147 # XXX: TODO set label to the "standard" update value148 149 144 # don't update if in runs are in state goto_cleaned, wait for clean to finish 150 145 if ($state eq 'cleaned') { 151 runcommand("$warptool -dbname $imagedb -warp_id $stage_id -updaterun -set_state update ");146 runcommand("$warptool -dbname $imagedb -warp_id $stage_id -updaterun -set_state update -set_label update"); 152 147 } 153 148 154 149 if ($chip_state eq 'cleaned') { 155 150 my $chip_id = $run_state->{chip_id}; 156 runcommand("$chiptool -dbname $imagedb -chip_id $chip_id -updaterun -set_state update ");157 } 158 159 # don't update yet if magicDSRuns are in state goto_ purged, wait for purge to finish160 if ($magic_ds_state eq ' purged') {151 runcommand("$chiptool -dbname $imagedb -chip_id $chip_id -updaterun -set_state update -set_label update"); 152 } 153 154 # don't update yet if magicDSRuns are in state goto_cleaned, wait for purge to finish 155 if ($magic_ds_state eq 'cleaned') { 161 156 my $magic_ds_id = $run_state->{magic_ds_id}; 162 157 runcommand("$magicdstool -dbname $imagedb -magic_ds_id $magic_ds_id -updaterun -set_state new"); … … 190 185 } 191 186 return join "", @$stdout_buf if defined wantarray(); 187 return $success; 192 188 } else { 193 189 print STDERR "skipping $command\n"; 194 190 } 191 return 1; 195 192 } 196 193
Note:
See TracChangeset
for help on using the changeset viewer.
