IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 24406


Ignore:
Timestamp:
Jun 15, 2009, 11:08:33 AM (17 years ago)
Author:
Paul Price
Message:

Checking proj_id is defined.

File:
1 edited

Legend:

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

    r24209 r24406  
    370370    my $proj_id = $ref->{proj_id};
    371371    $stmt->finish();
     372    ( carp "proj_id for $dbname not found in $admindb" and return undef ) unless $proj_id;
     373
    372374
    373375    my $source_id = ($proj_id << 3) | $table;
     
    12681270    # check if file actually exists
    12691271    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)
    12711273        $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        }
    12761278    }
    12771279
    12781280    unless (defined $outnameResolved) {
    1279         $outnameResolved = $self->file_create( $outname ) or return undef; # Resolved filename, for Nebulous
     1281        $outnameResolved = $self->file_create( $outname ) or return undef; # Resolved filename, for Nebulous
    12801282    }
    12811283    my $command = "$dvoImageExtract -D CATDIR $tess_dir $skycell_id -o $outnameResolved";
    12821284    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
    1283         run(command => $command, verbose => $verbose);
     1285        run(command => $command, verbose => $verbose);
    12841286    ( carp "Unable to perform dvoImageExtract for $tess_id $skycell_id\n" and return undef ) unless ($success and $self->file_exists( $outname ));
    12851287
Note: See TracChangeset for help on using the changeset viewer.