Changeset 28875 for trunk/ippScripts/scripts/automate_stacks.pl
- Timestamp:
- Aug 9, 2010, 5:47:56 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/automate_stacks.pl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/automate_stacks.pl
r28827 r28875 1046 1046 my $args = $command; 1047 1047 if ((exists($clean_alternate{$mode})) && ($clean_alternate{$mode} eq 'A')) { 1048 $args .= " -dbname $dbname -updaterun -set_state goto_cleaned -full -set_label goto_cleaned - time_stamp_end $cleaning_date ";1048 $args .= " -dbname $dbname -updaterun -set_state goto_cleaned -full -set_label goto_cleaned -label $label -time_stamp_end $cleaning_date "; 1049 1049 } 1050 1050 elsif ((exists($clean_alternate{$mode})) && ($clean_alternate{$mode} eq 'B')) { … … 1065 1065 1066 1066 foreach my $mode (@mode_list) { 1067 if ((exists($clean_alternate{$mode})) && ($clean_alternate{$mode} eq 'A')) {1068 my ($cleaning_date,$command) = construct_cleantool_args($date,"",$mode);1069 if ($cleaning_date eq 'no clean') {1070 next;1071 }1072 print STDERR "$command\n";1073 if (!(defined($pretend) || $debug == 1)) {1074 # print STDERR "BEAR IS DRIVING!?\n";1075 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =1076 run ( command => $command, verbose => $verbose );1077 unless ($success) {1078 $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);1079 &my_die("Unable to perform cleantool ($command): $error_code", 0,0,$date, $PS_EXIT_SYS_ERROR);1080 }1081 }1082 }1083 else {1067 # if ((exists($clean_alternate{$mode})) && ($clean_alternate{$mode} eq 'A')) { 1068 # my ($cleaning_date,$command) = construct_cleantool_args($date,"",$mode); 1069 # if ($cleaning_date eq 'no clean') { 1070 # next; 1071 # } 1072 # print STDERR "$command\n"; 1073 # if (!(defined($pretend) || $debug == 1)) { 1074 # # print STDERR "BEAR IS DRIVING!?\n"; 1075 # my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 1076 # run ( command => $command, verbose => $verbose ); 1077 # unless ($success) { 1078 # $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR); 1079 # &my_die("Unable to perform cleantool ($command): $error_code", 0,0,$date, $PS_EXIT_SYS_ERROR); 1080 # } 1081 # } 1082 # } 1083 # else { 1084 1084 foreach my $target (@target_list) { 1085 1085 if (exists($noclean_list{$target})) { … … 1101 1101 } 1102 1102 } 1103 }1103 # } 1104 1104 } 1105 1105 return(0);
Note:
See TracChangeset
for help on using the changeset viewer.
