IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 29652


Ignore:
Timestamp:
Nov 3, 2010, 12:16:05 PM (16 years ago)
Author:
rhenders
Message:

More filter arguments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippToPsps/perl/checkOdmStatus.pl

    r29648 r29652  
    2222my $onlyCheckUndeleted = undef;
    2323my $onlyCheckMergeWorthy = undef;
     24my $onlyCheckMerged = undef;
    2425
    2526
     
    3132        'location|l=s' => \$filePath,
    3233        'onlyundeleted|u' => \$onlyCheckUndeleted,
    33         'onlymergeworthy|m' => \$onlyCheckMergeWorthy,
     34        'onlymergeworthy|w' => \$onlyCheckMergeWorthy,
     35        'onlymerged|m' => \$onlyCheckMerged,
    3436        'remove|r' => \$removeUnprocessed,
    3537        'verbose|v' => \$verbose,
     
    5456    print "* OPTIONAL: location for files to be deleted    -l <path>\n";
    5557}
     58if (!defined $onlyCheckMerged) {
     59    $onlyCheckMerged = 0;
     60    print "* OPTIONAL: only check merged batches           -m                   (default = $onlyCheckMerged)\n";
     61}
    5662if (!defined $onlyCheckMergeWorthy) {
    5763    $onlyCheckMergeWorthy = 0;
    58     print "* OPTIONAL: only check merge worthy batches     -m                   (default = $onlyCheckMergeWorthy)\n";
     64    print "* OPTIONAL: only check merge worthy batches     -w                   (default = $onlyCheckMergeWorthy)\n";
    5965}
    6066if (!defined $onlyCheckUndeleted) {
     
    130136        if (!$onDatastore) {next;}
    131137        if ($onlyCheckUndeleted && $deleted) {next;}
    132         if ($onlyCheckMergeWorthy && !$mergeWorthy) {next;}
     138        if ($onlyCheckMergeWorthy && (!$mergeWorthy || $merged)) {next;}
     139        if ($onlyCheckMerged && !$merged) {next;}
    133140
    134141        my $batch = ippToPsps::Batch->existing(
Note: See TracChangeset for help on using the changeset viewer.