IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 24443


Ignore:
Timestamp:
Jun 16, 2009, 2:41:56 PM (17 years ago)
Author:
Paul Price
Message:

Set the same label that is used in the search.

Location:
branches/pap_mops/ippTools/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/pap_mops/ippTools/src/pubtool.c

    r24439 r24443  
    114114    PXOPT_COPY_STR(config->args, where, "-label", "label", "==");
    115115
    116     PXOPT_LOOKUP_STR(set_label, config->args, "-set_label", false, false);
     116    PXOPT_LOOKUP_STR(label, config->args, "-label", false, false);
    117117
    118118    psString query = pxDataGet("pubtool_definerun.sql"); // Query to run
     
    168168        psS64 stage = psMetadataLookupS64(NULL, row, "stage_id");   // Stage identifier
    169169
    170         if (!publishRunInsert(config->dbh, 0, client, stage, set_label, "new")) {
     170        if (!publishRunInsert(config->dbh, 0, client, stage, label, "new")) {
    171171            psError(PS_ERR_UNKNOWN, false, "Unable to add fileset");
    172172            psFree(output);
  • branches/pap_mops/ippTools/src/pubtoolConfig.c

    r24438 r24443  
    5252    // -definerun
    5353    psMetadata *definerunArgs = psMetadataAlloc();
    54     psMetadataAddStr(definerunArgs, PS_LIST_TAIL, "-set_label", 0, "define label", NULL);
    5554    psMetadataAddS64(definerunArgs, PS_LIST_TAIL, "-client_id", 0, "search by client_id", 0);
    56     psMetadataAddStr(definerunArgs, PS_LIST_TAIL, "-label", 0, "search by label", NULL);
     55    psMetadataAddStr(definerunArgs, PS_LIST_TAIL, "-label", 0, "set and search by label", NULL);
    5756
    5857    // -pending
Note: See TracChangeset for help on using the changeset viewer.