Changeset 12232
- Timestamp:
- Mar 5, 2007, 12:15:54 PM (19 years ago)
- Location:
- trunk/ippTools
- Files:
-
- 6 edited
-
share/chiptool_queuerawexp.sql (modified) (1 diff)
-
src/chipqueue.c (modified) (2 diffs)
-
src/chiptool.c (modified) (2 diffs)
-
src/chiptool.h (modified) (1 diff)
-
src/chiptoolConfig.c (modified) (1 diff)
-
src/regtool.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/share/chiptool_queuerawexp.sql
r12174 r12232 6 6 exp_tag, -- exp_tag 7 7 0xdeadbeef, -- guide_id 8 '%s', -- workdir 8 9 '%s', -- label 9 10 '%s', -- recipe -
trunk/ippTools/src/chipqueue.c
r12190 r12232 28 28 bool chipQueueExpTag(pxConfig *config, 29 29 psString exp_tag, 30 psString workdir, 30 31 psString label, 31 32 psString recipe, … … 58 59 // queue the exp 59 60 if (!p_psDBRunQuery(config->dbh, queuerawexp_query, 61 workdir ? workdir : "NULL", 60 62 label ? label : "NULL", 61 63 recipe ? recipe : "NULL", -
trunk/ippTools/src/chiptool.c
r12200 r12232 158 158 159 159 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 160 166 psString label = psMetadataLookupStr(&status, config->args, "-set_label"); 161 167 if (!status) { … … 234 240 235 241 // queue the exp 236 if (!chipQueueExpTag(config, exp_tag, label, recipe, expgroup, dvodb)) {242 if (!chipQueueExpTag(config, exp_tag, workdir, label, recipe, expgroup, dvodb)) { 237 243 if (!psDBRollback(config->dbh)) { 238 244 psError(PS_ERR_UNKNOWN, false, "database error"); -
trunk/ippTools/src/chiptool.h
r12190 r12232 37 37 pxConfig *chiptoolConfig(pxConfig *config, int argc, char **argv); 38 38 39 bool chipQueueExpTag(pxConfig *config, psString exp_tag, psString label, psString recipe, psString expgroup, psString dvodb); 39 bool chipQueueExpTag(pxConfig *config, 40 psString exp_tag, 41 psString workdir, 42 psString label, 43 psString recipe, 44 psString expgroup, 45 psString dvodb); 40 46 41 47 #endif // CHIPTOOL_H -
trunk/ippTools/src/chiptoolConfig.c
r12197 r12232 85 85 psMetadataAddStr(queueArgs, PS_LIST_TAIL, "-object", 0, 86 86 "search by exposure object", NULL); 87 psMetadataAddStr(queueArgs, PS_LIST_TAIL, "-set_workdir", 0, 88 "define workdir", NULL); 87 89 psMetadataAddStr(queueArgs, PS_LIST_TAIL, "-set_label", 0, 88 90 "define label", NULL); -
trunk/ippTools/src/regtool.c
r12190 r12232 646 646 647 647 // 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)) { 649 649 // rollback 650 650 if (!psDBRollback(config->dbh)) {
Note:
See TracChangeset
for help on using the changeset viewer.
