Changeset 24406
- Timestamp:
- Jun 15, 2009, 11:08:33 AM (17 years ago)
- File:
-
- 1 edited
-
trunk/PS-IPP-Config/lib/PS/IPP/Config.pm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/PS-IPP-Config/lib/PS/IPP/Config.pm
r24209 r24406 370 370 my $proj_id = $ref->{proj_id}; 371 371 $stmt->finish(); 372 ( carp "proj_id for $dbname not found in $admindb" and return undef ) unless $proj_id; 373 372 374 373 375 my $source_id = ($proj_id << 3) | $table; … … 1268 1270 # check if file actually exists 1269 1271 if ($self->file_exists( $outname )) { 1270 # double check that the file is not zero-length (eg: dvoImageExtract crashed)1272 # double check that the file is not zero-length (eg: dvoImageExtract crashed) 1271 1273 $outnameResolved = $self->file_resolve( $outname, 1 ) or return undef; # Resolved filename, for Nebulous 1272 my @stats = stat($outnameResolved);1273 if ($stats[7]) {1274 return 1;1275 }1274 my @stats = stat($outnameResolved); 1275 if ($stats[7]) { 1276 return 1; 1277 } 1276 1278 } 1277 1279 1278 1280 unless (defined $outnameResolved) { 1279 $outnameResolved = $self->file_create( $outname ) or return undef; # Resolved filename, for Nebulous1281 $outnameResolved = $self->file_create( $outname ) or return undef; # Resolved filename, for Nebulous 1280 1282 } 1281 1283 my $command = "$dvoImageExtract -D CATDIR $tess_dir $skycell_id -o $outnameResolved"; 1282 1284 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 1283 run(command => $command, verbose => $verbose);1285 run(command => $command, verbose => $verbose); 1284 1286 ( carp "Unable to perform dvoImageExtract for $tess_id $skycell_id\n" and return undef ) unless ($success and $self->file_exists( $outname )); 1285 1287
Note:
See TracChangeset
for help on using the changeset viewer.
