IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 2, 2009, 2:51:37 PM (17 years ago)
Author:
Paul Price
Message:

Merging in branches/pap/ from r23685. Some conflicts, most notably in ippTools, but these resolved fairly simply. Only question mark is on regtool reversion, but I think I got it right. Everything builds fine.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/ippTools/src/magicdstool.c

    r23438 r23688  
    599599
    600600    // default values
    601     PXOPT_LOOKUP_S16(code, config->args, "-code", false, false);
     601    PXOPT_LOOKUP_S16(fault, config->args, "-fault", false, false);
    602602    PXOPT_LOOKUP_STR(backup_path_base, config->args, "-backup_path_base", false, false);
    603603    PXOPT_LOOKUP_STR(recovery_path_base, config->args, "-recovery_path_base", false, false);
    604604    PXOPT_LOOKUP_BOOL(setmagicked, config->args, "-setmagicked", false);
    605605
    606     if (setmagicked && (code != 0)) {
     606    if (setmagicked && (fault != 0)) {
    607607        psError(PS_ERR_UNKNOWN, true, " cannot setmagicked for faulted file");
    608608        return false;
     
    625625    }
    626626
    627     if (!magicDSFileInsert(config->dbh, magic_ds_id, component, backup_path_base, recovery_path_base, code)) {
     627    if (!magicDSFileInsert(config->dbh, magic_ds_id, component, backup_path_base, recovery_path_base, fault)) {
    628628            // rollback
    629629        if (!psDBRollback(config->dbh)) {
     
    781781    PXOPT_COPY_S64(config->args, where, "-magic_ds_id", "magic_ds_id", "==");
    782782    PXOPT_COPY_STR(config->args, where, "-component", "component", "==");
    783     PXOPT_COPY_S16(config->args, where, "-code", "fault", "==");
     783    PXOPT_COPY_S16(config->args, where, "-fault", "fault", "==");
    784784
    785785    psString query = psStringCopy("DELETE FROM magicDSFile WHERE fault != 0");
Note: See TracChangeset for help on using the changeset viewer.