IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 5, 2010, 11:30:15 AM (16 years ago)
Author:
bills
Message:

files on command line override files in run data

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppSub/src/ppSubCamera.c

    r24261 r26518  
    3232    bool status;
    3333
    34     // look for the file on the RUN metadata
    35     pmFPAfile *file = pmFPAfileDefineFromRun(&status, bind, config, filerule); // File to return
     34    pmFPAfile *file = NULL;
     35    // look for the file on the argument list
     36    if (bind) {
     37        file = pmFPAfileBindFromArgs(&status, bind, config, filerule, argname);
     38    } else {
     39        file = pmFPAfileDefineFromArgs(&status, config, filerule, argname);
     40    }
    3641    if (!status) {
    3742        psError(PS_ERR_UNKNOWN, false, "Failed to load file definition for %s", filerule);
    38         return NULL;
    39     }
    40     if (!file) {
    41         // look for the file on the argument list
    42         if (bind) {
    43             file = pmFPAfileBindFromArgs(&status, bind, config, filerule, argname);
    44         } else {
    45             file = pmFPAfileDefineFromArgs(&status, config, filerule, argname);
    46         }
     43        return false;
     44    }
     45    if (!file) {
     46        // look for the file on the RUN metadata
     47        file = pmFPAfileDefineFromRun(&status, bind, config, filerule); // File to return
    4748        if (!status) {
    4849            psError(PS_ERR_UNKNOWN, false, "Failed to load file definition for %s", filerule);
    49             return false;
     50            return NULL;
    5051        }
    5152    }
Note: See TracChangeset for help on using the changeset viewer.