Changeset 26015 for trunk/ippTools/src/disttool.c
- Timestamp:
- Nov 3, 2009, 1:02:08 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/ippTools/src/disttool.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTools/src/disttool.c
r26005 r26015 371 371 new_label, 372 372 outroot, 373 NULL, // outdir 373 374 clean, 374 375 no_magic, 375 376 "new", 376 NULL, // time_stamp377 NULL, // time_stamp 377 378 0, // fault 378 set_note // note does not propagate379 set_note // note does not propagate 379 380 ); 380 381 … … 430 431 PXOPT_LOOKUP_STR(state, config->args, "-set_state", false, false); 431 432 PXOPT_LOOKUP_STR(label, config->args, "-set_label", false, false); 433 PXOPT_LOOKUP_STR(outdir, config->args, "-set_outdir", false, false); 432 434 PXOPT_LOOKUP_S16(fault, config->args, "-fault", false, false); 433 435 … … 440 442 psString query = psStringCopy("UPDATE distRun SET time_stamp = UTC_TIMESTAMP()"); 441 443 444 if (outdir) { 445 psStringAppend(&query, " , outdir = '%s'", outdir); 446 } 442 447 if (state) { 443 448 psStringAppend(&query, " , state = '%s'", state); … … 652 657 PXOPT_LOOKUP_S32(bytes, config->args, "-bytes", require_fileinfo, false); 653 658 PXOPT_LOOKUP_STR(md5sum, config->args, "-md5sum", require_fileinfo, false); 659 PXOPT_LOOKUP_STR(outdir, config->args, "-outdir", require_fileinfo, false); 654 660 PXOPT_LOOKUP_STR(name, config->args, "-name", require_fileinfo, false); 655 661 656 if (!distComponentInsert(config->dbh, dist_id, component, bytes, md5sum, "full", name, fault)) {662 if (!distComponentInsert(config->dbh, dist_id, component, bytes, md5sum, "full", outdir, name, fault)) { 657 663 psError(PS_ERR_UNKNOWN, false, "database error"); 658 664 return false;
Note:
See TracChangeset
for help on using the changeset viewer.
