IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 20, 2010, 4:37:23 PM (16 years ago)
Author:
watersc1
Message:

Fix unpopulated skyfile bug (hopefully)

File:
1 edited

Legend:

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

    r28043 r28055  
    14301430
    14311431        // Set chipRun.software_ver to the appropriate value
    1432         if (!pxSetRunSoftware(config, "chipRun", "chip_id", chip_id, software_ver)) {
    1433           psError(PS_ERR_UNKNOWN, false, "failed to set chipRun.software_ver for chip_id: %" PRId64,
    1434                   chip_id);
    1435           psFree(output);
    1436           if (!psDBRollback(config->dbh)) {
    1437             psError(PS_ERR_UNKNOWN, false, "database error");
     1432        if (software_ver) {
     1433          if (!pxSetRunSoftware(config, "chipRun", "chip_id", chip_id, software_ver)) {
     1434            psError(PS_ERR_UNKNOWN, false, "failed to set chipRun.software_ver for chip_id: %" PRId64,
     1435                    chip_id);
     1436            psFree(output);
     1437            if (!psDBRollback(config->dbh)) {
     1438              psError(PS_ERR_UNKNOWN, false, "database error");
     1439            }
     1440            return(false);
    14381441          }
    1439           return(false);
    14401442        }
    14411443        // Set chipRun.maskfrac* to the appropriate values.
    1442         if (!pxSetRunMaskfrac(config, "chipRun", "chip_id",chip_id, maskfrac_npix, maskfrac_static,
    1443                               maskfrac_dynamic, maskfrac_magic, maskfrac_advisory)) {
    1444           psError(PS_ERR_UNKNOWN, false, "failed to set chipRun.software_ver for chip_id: %" PRId64,
    1445                   chip_id);
    1446           psFree(output);
    1447           if (!psDBRollback(config->dbh)) {
    1448             psError(PS_ERR_UNKNOWN, false, "database error");
     1444        if (maskfrac_npix) {
     1445          if (!pxSetRunMaskfrac(config, "chipRun", "chip_id",chip_id, maskfrac_npix, maskfrac_static,
     1446                                maskfrac_dynamic, maskfrac_magic, maskfrac_advisory)) {
     1447            psError(PS_ERR_UNKNOWN, false, "failed to set chipRun.software_ver for chip_id: %" PRId64,
     1448                    chip_id);
     1449            psFree(output);
     1450            if (!psDBRollback(config->dbh)) {
     1451              psError(PS_ERR_UNKNOWN, false, "database error");
     1452            }
     1453            return(false);
    14491454          }
    1450           return(false);
    14511455        }
    14521456        // set chipRun.state to 'stop' and update the magicked state
Note: See TracChangeset for help on using the changeset viewer.