IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 12232


Ignore:
Timestamp:
Mar 5, 2007, 12:15:54 PM (19 years ago)
Author:
jhoblitt
Message:

add chipPendingExp.workdir

Location:
trunk/ippTools
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/share/chiptool_queuerawexp.sql

    r12174 r12232  
    66        exp_tag,        -- exp_tag
    77        0xdeadbeef,     -- guide_id
     8        '%s',           -- workdir
    89        '%s',           -- label
    910        '%s',           -- recipe
  • trunk/ippTools/src/chipqueue.c

    r12190 r12232  
    2828bool chipQueueExpTag(pxConfig *config,
    2929                     psString exp_tag,
     30                     psString workdir,
    3031                     psString label,
    3132                     psString recipe,
     
    5859    // queue the exp
    5960    if (!p_psDBRunQuery(config->dbh, queuerawexp_query,
     61                workdir  ? workdir  : "NULL",
    6062                label    ? label    : "NULL",
    6163                recipe   ? recipe   : "NULL",
  • trunk/ippTools/src/chiptool.c

    r12200 r12232  
    158158
    159159    bool status = false;
     160    psString workdir = psMetadataLookupStr(&status, config->args, "-set_workdir");
     161    if (!status) {
     162        psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -set_workdir");
     163        return false;
     164    }
     165
    160166    psString label = psMetadataLookupStr(&status, config->args, "-set_label");
    161167    if (!status) {
     
    234240
    235241        // queue the exp
    236         if (!chipQueueExpTag(config, exp_tag, label, recipe, expgroup, dvodb)) {
     242        if (!chipQueueExpTag(config, exp_tag, workdir, label, recipe, expgroup, dvodb)) {
    237243            if (!psDBRollback(config->dbh)) {
    238244                psError(PS_ERR_UNKNOWN, false, "database error");
  • trunk/ippTools/src/chiptool.h

    r12190 r12232  
    3737pxConfig *chiptoolConfig(pxConfig *config, int argc, char **argv);
    3838
    39 bool chipQueueExpTag(pxConfig *config, psString exp_tag, psString label, psString recipe, psString expgroup, psString dvodb);
     39bool chipQueueExpTag(pxConfig *config,
     40                     psString exp_tag,
     41                     psString workdir,
     42                     psString label,
     43                     psString recipe,
     44                     psString expgroup,
     45                     psString dvodb);
    4046
    4147#endif // CHIPTOOL_H
  • trunk/ippTools/src/chiptoolConfig.c

    r12197 r12232  
    8585    psMetadataAddStr(queueArgs, PS_LIST_TAIL, "-object",  0,
    8686            "search by exposure object", NULL);
     87    psMetadataAddStr(queueArgs, PS_LIST_TAIL, "-set_workdir",  0,
     88            "define workdir", NULL);
    8789    psMetadataAddStr(queueArgs, PS_LIST_TAIL, "-set_label",  0,
    8890            "define label", NULL);
  • trunk/ippTools/src/regtool.c

    r12190 r12232  
    646646
    647647        // insert an entry into the chipPendingExp table
    648         if (!chipQueueExpTag(config, exp_tag, NULL, NULL, NULL, NULL)) {
     648        if (!chipQueueExpTag(config, exp_tag, NULL, NULL, NULL, NULL, NULL)) {
    649649            // rollback
    650650            if (!psDBRollback(config->dbh)) {
Note: See TracChangeset for help on using the changeset viewer.