IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 3, 2009, 1:02:08 PM (17 years ago)
Author:
bills
Message:

Spread building of distribution bundles over a number of hosts (currently 5)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/src/disttool.c

    r26005 r26015  
    371371                new_label,
    372372                outroot,
     373                NULL,     // outdir
    373374                clean,
    374375                no_magic,
    375376                "new",
    376                 NULL,   // time_stamp
     377                NULL,    // time_stamp
    377378                0,       // fault
    378                 set_note    // note does not propagate
     379                set_note // note does not propagate
    379380                );
    380381
     
    430431    PXOPT_LOOKUP_STR(state, config->args, "-set_state", false, false);
    431432    PXOPT_LOOKUP_STR(label, config->args, "-set_label", false, false);
     433    PXOPT_LOOKUP_STR(outdir, config->args, "-set_outdir", false, false);
    432434    PXOPT_LOOKUP_S16(fault, config->args, "-fault", false, false);
    433435
     
    440442    psString query = psStringCopy("UPDATE distRun SET time_stamp = UTC_TIMESTAMP()");
    441443
     444    if (outdir) {
     445        psStringAppend(&query, " , outdir = '%s'", outdir);
     446    }
    442447    if (state) {
    443448        psStringAppend(&query, " , state = '%s'", state);
     
    652657    PXOPT_LOOKUP_S32(bytes, config->args, "-bytes", require_fileinfo, false);
    653658    PXOPT_LOOKUP_STR(md5sum, config->args, "-md5sum", require_fileinfo, false);
     659    PXOPT_LOOKUP_STR(outdir, config->args, "-outdir", require_fileinfo, false);
    654660    PXOPT_LOOKUP_STR(name, config->args, "-name", require_fileinfo, false);
    655661
    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)) {
    657663        psError(PS_ERR_UNKNOWN, false, "database error");
    658664        return false;
Note: See TracChangeset for help on using the changeset viewer.