Changeset 27852
- Timestamp:
- May 4, 2010, 10:00:17 AM (16 years ago)
- File:
-
- 1 edited
-
trunk/PS-IPP-PStamp/lib/PS/IPP/PStamp/Job.pm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/PS-IPP-PStamp/lib/PS/IPP/PStamp/Job.pm
r27802 r27852 457 457 my $command = "$difftool -dbname $imagedb"; 458 458 459 my $listrun = 0; 459 460 if ($byid) { 460 $command .= " -listrun -diff_id $id"; 461 if ($skycell_id) { 462 $command .= " -diffskyfile -diff_id $id -skycell_id $skycell_id"; 463 } else { 464 $command .= " -listrun -diff_id $id"; 465 $listrun = 1; 466 } 461 467 } else { 462 468 $command .= " -diffskyfile -diff_skyfile_id $id"; 463 469 } 464 $command .= " -skycell_id $skycell_id" if $skycell_id;465 470 466 471 my $output = runToolAndParse($command, $verbose); 467 472 468 my $n = @$output;469 if (!$ byid&& ($n > 1)) {473 my $n = $output ? scalar @$output : 0; 474 if (!$listrun && ($n > 1)) { 470 475 die ("difftool returned an unexpected number of diffskyfiles: $n"); 471 476 } elsif ($n == 0) { … … 474 479 475 480 my $images; 476 if ($ byid) {481 if ($listrun) { 477 482 $images = selectComponents($ipprc, $imagedb, 'byid', 'diff', $rowList, $output, $verbose); 478 483 } else {
Note:
See TracChangeset
for help on using the changeset viewer.
