IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 28244


Ignore:
Timestamp:
Jun 7, 2010, 12:00:05 PM (16 years ago)
Author:
bills
Message:

work around problem reported in ticket 1394 (difftool -listrun returns multiple rows for stack-stack diffs)
by adding -limit 1. The data that is different for different stack_ids isn't used by the postage stamp
parser

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/PS-IPP-PStamp/lib/PS/IPP/PStamp/Job.pm

    r28115 r28244  
    475475    my $inverse = $option_mask & $PSTAMP_SELECT_INVERSE;
    476476
    477     my $command = "$difftool -dbname $imagedb";
     477    my $command = "$difftool -dbname $imagedb -pstamp_order";
    478478   
    479479    my $listrun = 0;
     
    482482            $command .= " -diffskyfile -diff_id $id -skycell_id $skycell_id";
    483483        } else {
     484            $listrun = 1;
    484485            $command .= " -listrun -diff_id $id";
    485             $listrun = 1;
     486            # the following is a work around for the problem reported in ticket #1394
     487            # 'difftool -listrun returns multiple rows for stack-stack diffs'
     488            $command .= " -limit 1";
    486489        }
    487490    } else {
     
    492495
    493496    my $n = $output ? scalar @$output : 0;
    494     if (!$listrun && ($n > 1)) {
     497    if ($n > 1) {
    495498        die ("difftool returned an unexpected number of diffskyfiles: $n");
    496499    } elsif ($n == 0) {
Note: See TracChangeset for help on using the changeset viewer.