IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 15, 2010, 3:49:50 PM (16 years ago)
Author:
eugene
Message:

update pubtool -definerun to accept multiple labels

File:
1 edited

Legend:

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

    r25932 r26956  
    156156    // optional
    157157    PXOPT_COPY_S64(config->args, where, "-client_id", "client_id", "==");
    158     PXOPT_COPY_STR(config->args, where, "-label", "label", "==");
    159 
    160     PXOPT_LOOKUP_STR(label, config->args, "-label", false, false);
     158    pxAddLabelSearchArgs (config, where, "-label", "label", "=="); // define using newExp label
    161159
    162160    psString query = pxDataGet("pubtool_definerun.sql"); // Query to run
     
    211209        psS64 client = psMetadataLookupS64(NULL, row, "client_id"); // Client identifier
    212210        psS64 stage = psMetadataLookupS64(NULL, row, "stage_id");   // Stage identifier
     211        char *label = psMetadataLookupStr(NULL, row, "src_label");   // label from correct source
    213212
    214213        if (!publishRunInsert(config->dbh, 0, client, stage, label, "new")) {
Note: See TracChangeset for help on using the changeset viewer.