IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 26, 2010, 10:13:02 AM (16 years ago)
Author:
bills
Message:

allow the uri of a data store to be changed

File:
1 edited

Legend:

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

    r28629 r28712  
    206206    PXOPT_LOOKUP_S64(ds_id,       config->args, "-ds_id",         true, false);
    207207    PXOPT_LOOKUP_STR(lastFileset, config->args, "-set_last_fileset",  false, false);
     208    PXOPT_LOOKUP_STR(uri, config->args,         "-set_uri",  false, false);
    208209    PXOPT_LOOKUP_STR(state,       config->args, "-set_state",         false, false);
    209210    PXOPT_LOOKUP_STR(label,       config->args, "-set_label",         false, false);
     
    211212    PXOPT_LOOKUP_BOOL(update_timestamp, config->args, "-update_timestamp", false);
    212213
    213     if (!state && !lastFileset && !pollInterval && !update_timestamp && !label) {
     214    if (!state && !lastFileset && !pollInterval && !update_timestamp && !label &&!uri) {
    214215        psError(PS_ERR_UNKNOWN, true, "at least one of -last_fileset or -set_state is required");
    215216        return false;
     
    222223    }
    223224
     225    if (uri) {
     226        psStringAppend(&query, ", uri = '%s'", uri);
     227    }
    224228    if (state) {
    225229        psStringAppend(&query, ", state = '%s'", state);
Note: See TracChangeset for help on using the changeset viewer.