IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 28202


Ignore:
Timestamp:
Jun 3, 2010, 11:46:24 AM (16 years ago)
Author:
bills
Message:

Fix problem reported in ticket 1390. Disallow -updaterun -set_state update and print out
a suggestion on what to do.

Location:
trunk/ippTools/src
Files:
2 edited

Legend:

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

    r28109 r28202  
    289289    PXOPT_LOOKUP_STR(note, config->args,        "-set_note", false, false);
    290290
     291    if (!strcmp(state, "update")) {
     292        fprintf(stderr, "'-updaterun -set_state update' is not supported.");
     293        if (!strcmp(runTable, "chipRun")) {
     294            fprintf(stderr, " Use -setimfiletoupdate.\n");
     295        } else {
     296            fprintf(stderr, " Use -setskyfiletoupdate.\n");
     297        }
     298        exit(1);
     299    }
     300
    291301    psString dist_group = NULL;
    292302    if (has_dist_group) {
  • trunk/ippTools/src/warptool.c

    r28082 r28202  
    426426    }
    427427
    428     psString query = psStringCopy("UPDATE warpRun JOIN warpSkyfile USING(warp_id) JOIN fakeRun USING(fake_id) JOIN camRun USING(cam_id) JOIN chipRun USING(chip_id) JOIN rawExp USING(exp_id)");
     428    psString query = psStringCopy("UPDATE warpRun");
    429429
    430430    // pxUpdateRun gets parameters from config->args and updates
Note: See TracChangeset for help on using the changeset viewer.