IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 4, 2013, 11:26:25 AM (13 years ago)
Author:
bills
Message:

minor changes to relGroup processing

File:
1 edited

Legend:

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

    r35297 r35358  
    832832    PXOPT_LOOKUP_BOOL(pretend, config->args, "-pretend", false);
    833833    PXOPT_LOOKUP_BOOL(simple, config->args,  "-simple", false);
     834    PXOPT_LOOKUP_U64(limit, config->args, "-limit", false, false);
    834835
    835836    // find the parameters of all the exposures that we want to add to the release
     
    852853
    853854    psFree(where);
     855
     856    if (limit) {
     857        psString limitString = psDBGenerateLimitSQL(limit);
     858        psStringAppend(&query, " %s", limitString);
     859        psFree(limitString);
     860    }
    854861
    855862    if (!p_psDBRunQuery(config->dbh, query)) {
     
    13311338    PS_ASSERT_PTR_NON_NULL(config, false);
    13321339
    1333     PXOPT_LOOKUP_S32(group_id, config->args,      "-group_id", true, false);
     1340    PXOPT_LOOKUP_S32(group_id, config->args,      "-group_id", false, false);
     1341    PXOPT_LOOKUP_STR(group_name, config->args,    "-group_name",  false, false);
     1342    if (!group_id && !group_name) {
     1343        psError(PXTOOLS_ERR_CONFIG, true, "either group_id or group_name is required\n");
     1344        return false;
     1345    }
    13341346
    13351347    PXOPT_LOOKUP_STR(state,    config->args,    "-set_state",  false, false);
     
    13521364
    13531365    PXOPT_COPY_S64(config->args, where, "-group_id", "relGroup.group_id", "==");
     1366    PXOPT_COPY_STR(config->args, where, "-group_name", "relGroup.group_name", "==");
    13541367    // XXX TODO if label is enabled (for changing label or state for a block) we should
    13551368    // disallow setting some parameters such as exp_list_path
Note: See TracChangeset for help on using the changeset viewer.