Changeset 28015 for trunk/pstamp/scripts
- Timestamp:
- May 18, 2010, 4:16:25 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/pstamp/scripts/pstampparse.pl (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pstamp/scripts/pstampparse.pl
r27993 r28015 528 528 my $data_state = $image->{data_state}; 529 529 $data_state = $run_state if $stage eq 'stack'; 530 if (($run_state eq 'goto_purged') or ($data_state eq 'purged') or 531 ($run_state eq 'drop') or 532 ($run_state eq 'error_cleaned') or ($data_state eq 'error_cleaned') or 533 ($run_state eq 'goto_scrubbed') or ($data_state eq 'scrubbed')) { 530 if (($run_state =~ /purged/) or ($run_state =~ /scrubbed/)) { 534 531 # image is gone and it's not coming back 535 532 $newState = 'stop'; 536 533 $fault = $PSTAMP_GONE; 534 } elsif (($run_state eq "error_cleaned") or ($data_state eq 'error_cleaned')) { 535 # if cleanup had an error don't get the user's hopes up 536 $newState = 'stop'; 537 $fault = $PSTAMP_NOT_AVAILABLE; 537 538 } elsif (($data_state ne 'full') or ($need_magic and ($image->{magicked} < 0))) { 538 539 if ($stage eq 'chip') { 539 540 my $burntool_state = $image->{burntool_state}; 540 if ($burntool_state and (abs($burntool_state) < 14)) { 541 # XXX: get value 13 from ppImage recipe 542 if ($burntool_state and (abs($burntool_state) < 13)) { 541 543 $newState = 'stop'; 542 544 $fault = $PSTAMP_NOT_AVAILABLE; … … 708 710 my $data_state = $image->{data_state}; 709 711 $data_state = $run_state if $stage eq "stack"; 710 if (($run_state eq 'goto_purged') or ($data_state eq 'purged') or 711 ($run_state eq 'goto_scrubbed') or ($data_state eq 'scrubbed')) { 712 # if (($run_state eq 'goto_purged') or ($data_state eq 'purged') or 713 # ($run_state eq 'goto_scrubbed') or ($data_state eq 'scrubbed')) { 714 if (($run_state =~ /purged/) or ($run_state =~ /scrubbed/)) { 712 715 # image is gone and it's not coming back 713 716 $newState = 'stop'; 714 717 $fault = $PSTAMP_GONE; 718 } elsif ($run_state eq "error_cleaned") { 719 # if cleanup had an error don't get the user's hopes up 720 $newState = 'stop'; 721 $fault = $PSTAMP_NOT_AVAILABLE; 715 722 } elsif (($data_state ne 'full') or ($need_magic and ($image->{magicked} < 0))) { 716 723 # wait for update unless the customer asks us to not to
Note:
See TracChangeset
for help on using the changeset viewer.
