IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 16, 2009, 10:21:18 AM (17 years ago)
Author:
Paul Price
Message:

Moving workdir under publishClient so it doesn't have to be defined for every run (which is going to run regularly under pantasks)

File:
1 edited

Legend:

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

    r24427 r24428  
    8989    PXOPT_LOOKUP_STR(product, config->args, "-product",  true, false);
    9090    PXOPT_LOOKUP_STR(stage, config->args, "-stage", true, false);
     91    PXOPT_LOOKUP_STR(workdir, config->args, "-workdir",  true, false);
    9192
    9293    // optional
    9394    PXOPT_LOOKUP_STR(comment, config->args, "-comment",  false, false);
    9495
    95     if (!publishClientInsert(config->dbh, 0, product, stage, comment)) {
     96    if (!publishClientInsert(config->dbh, 0, product, stage, workdir, comment)) {
    9697        psError(PS_ERR_UNKNOWN, false, "Database error");
    9798        return false;
     
    108109
    109110    // required
    110     PXOPT_LOOKUP_STR(workdir, config->args, "-workdir",  true, false);
    111111
    112112    // optional
     
    171171        psS64 stage = psMetadataLookupS64(NULL, row, "stage_id");   // Stage identifier
    172172
    173         if (!publishRunInsert(config->dbh, 0, client, stage, workdir, set_label, "new")) {
     173        if (!publishRunInsert(config->dbh, 0, client, stage, set_label, "new")) {
    174174            psError(PS_ERR_UNKNOWN, false, "Unable to add fileset");
    175175            psFree(output);
Note: See TracChangeset for help on using the changeset viewer.