Changeset 27349 for trunk/ippTools/src/magicdstool.c
- Timestamp:
- Mar 19, 2010, 8:22:35 AM (16 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/magicdstool.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/magicdstool.c
r27236 r27349 114 114 PXOPT_LOOKUP_STR(note, config->args, "-set_note", false, false); 115 115 PXOPT_LOOKUP_BOOL(rerun, config->args, "-rerun", false); 116 PXOPT_LOOKUP_BOOL( dry_run, config->args, "-dry_run", false);116 PXOPT_LOOKUP_BOOL(pretend, config->args, "-pretend", false); 117 117 PXOPT_LOOKUP_BOOL(simple, config->args, "-simple", false); 118 118 PXOPT_LOOKUP_U64(limit, config->args, "-limit", false, false); … … 237 237 // Parse the list of runs ready to be destreaked 238 238 239 if (! dry_run&& !psDBTransaction(config->dbh)) {239 if (!pretend && !psDBTransaction(config->dbh)) { 240 240 psError(PS_ERR_UNKNOWN, false, "database error"); 241 241 return false; … … 286 286 } 287 287 288 if (! dry_run) {288 if (!pretend) { 289 289 if (!magicDSRunInsertObject(config->dbh, run)) { 290 290 psError(PS_ERR_UNKNOWN, false, "database error"); … … 305 305 } 306 306 307 if (! dry_run&& !psDBCommit(config->dbh)) {307 if (!pretend && !psDBCommit(config->dbh)) { 308 308 psError(PS_ERR_UNKNOWN, false, "database error"); 309 309 return false; … … 552 552 // optional 553 553 PXOPT_LOOKUP_STR(set_label, config->args, "-set_label", false, false); 554 PXOPT_LOOKUP_STR(set_data_group, config->args, "-set_data_group", false, false); 554 555 psString setString = NULL; 555 556 if (set_label) { 556 557 psStringAppend(&setString, ", label = '%s'", set_label); 558 } 559 if (set_data_group) { 560 psStringAppend(&setString, ", data_group = '%s'", set_data_group); 557 561 } 558 562
Note:
See TracChangeset
for help on using the changeset viewer.
