IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 23614


Ignore:
Timestamp:
Mar 30, 2009, 2:53:54 PM (17 years ago)
Author:
eugene
Message:

add -all requirement to -processedimfile

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/src/chiptool.c

    r23418 r23614  
    242242    PXOPT_COPY_STR(config->args,  where, "-state",   "chipRun.state",   "==");
    243243
    244     if (!psListLength(where->list)
    245         && !psMetadataLookupBool(NULL, config->args, "-all")) {
     244    if (!psListLength(where->list) &&
     245        !psMetadataLookupBool(NULL, config->args, "-all")) {
    246246        psFree(where);
    247247        where = NULL;
     
    542542    PXOPT_COPY_STR(config->args, where, "-label", "chipRun.label", "LIKE");
    543543    PXOPT_COPY_S32(config->args, where, "-magicked", "chipRun.magicked", "==");
     544
     545    if (!psListLength(where->list) &&
     546        !psMetadataLookupBool(NULL, config->args, "-all")) {
     547        psFree(where);
     548        psError(PXTOOLS_ERR_DATA, false, "search parameters (or -all) are required");
     549        return false;
     550    }
    544551
    545552    psString query = pxDataGet("chiptool_processedimfile.sql");
Note: See TracChangeset for help on using the changeset viewer.