IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 27542


Ignore:
Timestamp:
Mar 30, 2010, 8:10:49 PM (16 years ago)
Author:
bills
Message:

in -updateinterest accept -clean and -full to chose which to update

Location:
trunk/ippTools/src
Files:
2 edited

Legend:

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

    r27483 r27542  
    16731673    PXOPT_COPY_STR(config->args, where, "-dist_group", "dist_group", "LIKE");
    16741674
     1675    PXOPT_LOOKUP_BOOL(clean, config->args, "-clean", false);
     1676    PXOPT_LOOKUP_BOOL(full, config->args, "-full", false);
     1677    if (full && clean) {
     1678        psError(PS_ERR_UNKNOWN, true, "-full and -clean makes no sense, chose one or the other");
     1679        psFree(where);
     1680        return false;
     1681    }
     1682       
     1683
    16751684    PXOPT_LOOKUP_STR(state, config->args, "-set_state", false, false);
    16761685    if (!state) {
     
    16921701    }
    16931702    psFree(where);
     1703
     1704    if (clean) {
     1705        psStringAppend(&query, " AND distTarget.clean");
     1706    } else {
     1707        psStringAppend(&query, " AND NOT distTarget.clean");
     1708    }
    16941709
    16951710    if (!p_psDBRunQueryF(config->dbh, query, state)) {
  • trunk/ippTools/src/disttoolConfig.c

    r27483 r27542  
    301301    psMetadataAddStr(updateinterestArgs, PS_LIST_TAIL, "-dest_name",    0, "define destination name", NULL);
    302302    psMetadataAddStr(updateinterestArgs, PS_LIST_TAIL, "-dist_group",    0, "define distribution group", NULL);
     303    psMetadataAddBool(updateinterestArgs, PS_LIST_TAIL,"-clean",     0, "update clean interests", false);
     304    psMetadataAddBool(updateinterestArgs, PS_LIST_TAIL,"-full",     0, "update full interests", false);
    303305
    304306    // -listinterests
Note: See TracChangeset for help on using the changeset viewer.