IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 26869


Ignore:
Timestamp:
Feb 10, 2010, 4:10:23 PM (16 years ago)
Author:
eugene
Message:

updates from trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/20091201/pswarp/src/pswarpParseCamera.c

    r26543 r26869  
    2323    bool status;
    2424
    25     // look for the file on the RUN metadata
    26     pmFPAfile *file = pmFPAfileDefineFromRun(&status, bind, config, filerule); // File to return
     25    pmFPAfile *file = NULL;
     26    // look for the file on the argument list
     27    if (bind) {
     28        file = pmFPAfileBindFromArgs(&status, bind, config, filerule, argname);
     29    } else {
     30        file = pmFPAfileDefineFromArgs(&status, config, filerule, argname);
     31    }
    2732    if (!status) {
    2833        psError(PSWARP_ERR_CONFIG, false, "Failed to load file definition for %s", filerule);
     
    3035    }
    3136    if (!file) {
    32         // look for the file on the argument list
    33         if (bind) {
    34             file = pmFPAfileBindFromArgs(&status, bind, config, filerule, argname);
    35         } else {
    36             file = pmFPAfileDefineFromArgs(&status, config, filerule, argname);
    37         }
     37        // look for the file on the RUN metadata
     38        file = pmFPAfileDefineFromRun(&status, bind, config, filerule); // File to return
    3839        if (!status) {
    3940            psError(PSWARP_ERR_CONFIG, false, "Failed to load file definition for %s", filerule);
    40             return false;
     41            return NULL;
    4142        }
    4243    }
Note: See TracChangeset for help on using the changeset viewer.