IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 19, 2010, 8:22:35 AM (16 years ago)
Author:
bills
Message:

add -set_data_group to updaterun change -dry_run to -pretend to be consistent
with other tools

File:
1 edited

Legend:

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

    r27236 r27349  
    114114    PXOPT_LOOKUP_STR(note, config->args, "-set_note", false, false);
    115115    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);
    117117    PXOPT_LOOKUP_BOOL(simple, config->args, "-simple", false);
    118118    PXOPT_LOOKUP_U64(limit, config->args, "-limit", false, false);
     
    237237    // Parse the list of runs ready to be destreaked
    238238
    239     if (!dry_run && !psDBTransaction(config->dbh)) {
     239    if (!pretend && !psDBTransaction(config->dbh)) {
    240240        psError(PS_ERR_UNKNOWN, false, "database error");
    241241        return false;
     
    286286        }
    287287
    288         if (!dry_run) {
     288        if (!pretend) {
    289289            if (!magicDSRunInsertObject(config->dbh, run)) {
    290290                psError(PS_ERR_UNKNOWN, false, "database error");
     
    305305    }
    306306
    307     if (!dry_run && !psDBCommit(config->dbh)) {
     307    if (!pretend && !psDBCommit(config->dbh)) {
    308308        psError(PS_ERR_UNKNOWN, false, "database error");
    309309        return false;
     
    552552    // optional
    553553    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);
    554555    psString setString = NULL;
    555556    if (set_label) {
    556557        psStringAppend(&setString, ", label = '%s'", set_label);
     558    }
     559    if (set_data_group) {
     560        psStringAppend(&setString, ", data_group = '%s'", set_data_group);
    557561    }
    558562
Note: See TracChangeset for help on using the changeset viewer.