Changeset 29648
- Timestamp:
- Nov 3, 2010, 8:19:43 AM (16 years ago)
- File:
-
- 1 edited
-
trunk/ippToPsps/perl/checkOdmStatus.pl (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippToPsps/perl/checkOdmStatus.pl
r29301 r29648 20 20 my $filePath = undef; 21 21 my $removeUnprocessed = undef; 22 my $onlyCheckUndeleted = undef; 23 my $onlyCheckMergeWorthy = undef; 22 24 23 25 … … 28 30 'product|p=s' => \$product, 29 31 'location|l=s' => \$filePath, 32 'onlyundeleted|u' => \$onlyCheckUndeleted, 33 'onlymergeworthy|m' => \$onlyCheckMergeWorthy, 30 34 'remove|r' => \$removeUnprocessed, 31 35 'verbose|v' => \$verbose, … … 49 53 if (!defined $filePath) { 50 54 print "* OPTIONAL: location for files to be deleted -l <path>\n"; 55 } 56 if (!defined $onlyCheckMergeWorthy) { 57 $onlyCheckMergeWorthy = 0; 58 print "* OPTIONAL: only check merge worthy batches -m (default = $onlyCheckMergeWorthy)\n"; 59 } 60 if (!defined $onlyCheckUndeleted) { 61 $onlyCheckUndeleted = 0; 62 print "* OPTIONAL: only check undeleted batches -u (default = $onlyCheckUndeleted)\n"; 51 63 } 52 64 if (!defined $removeUnprocessed) { … … 117 129 118 130 if (!$onDatastore) {next;} 131 if ($onlyCheckUndeleted && $deleted) {next;} 132 if ($onlyCheckMergeWorthy && !$mergeWorthy) {next;} 119 133 120 134 my $batch = ippToPsps::Batch->existing( … … 212 226 213 227 my ($tempFile, $tempName) = tempfile( "/tmp/ippToPsps_odmXml.XXXX", UNLINK => !$save_temps); 214 #print $response->content. "\n";228 if ($verbose) {print $response->content. "\n";} 215 229 print $tempFile $response->content; 216 230 close($tempFile); … … 253 267 ${$merged} = 0; 254 268 269 if ($result =~ m/None/) { ${$loadedToOdm} = 1;} 255 270 if ($result =~ m/LoadStarted/) { ${$loadedToOdm} = 1;} 256 271 if ($result =~ m/MergeWorthy/) { ${$loadedToOdm} = 1; ${$mergeWorthy} = 1;}
Note:
See TracChangeset
for help on using the changeset viewer.
