IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 17572


Ignore:
Timestamp:
May 7, 2008, 3:48:27 PM (18 years ago)
Author:
jhoblitt
Message:

add handling for summitExp.fault

Location:
trunk/ippTools
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/configure.ac

    r17142 r17572  
    1818PKG_CHECK_MODULES([PSLIB], [pslib >= 1.1.0])
    1919PKG_CHECK_MODULES([PSMODULES], [psmodules >= 1.1.0])
    20 PKG_CHECK_MODULES([IPPDB], [ippdb >= 1.1.32])
     20PKG_CHECK_MODULES([IPPDB], [ippdb >= 1.1.33])
    2121
    2222PXTOOLS_CFLAGS="${PSLIB_CFLAGS=} ${PSMODULES_CFLAGS=} ${IPPDB_CFLAGS=}"
  • trunk/ippTools/src/pzgetexp.c

    r16588 r17572  
    192192            "   SElECT"
    193193            "       incoming.*,"
    194             "       NULL"
     194            "       NULL,"
     195            "       0"
    195196            "   FROM incoming"
    196197            "   LEFT JOIN summitExp"
  • trunk/ippTools/src/pzgetimfiles.c

    r16588 r17572  
    9494
    9595    if (exitStatus != 0) {
     96        // mark the summitExp row as faulted
     97        if (!p_psDBRunQuery(config->dbh, "UPDATE summitExp SET fault = 123 WHERE exp_name = '%s' AND camera = '%s' AND telescope = '%s'", filesetid, camera, telescope)) {
     98            psError(PS_ERR_UNKNOWN, false, "database error");
     99        }
     100
    96101        psError(PS_ERR_UNKNOWN, true, "%s failed with exit status %d",
    97102            FILESET_LS_CMD, exitStatus);
  • trunk/ippTools/src/pztool.c

    r17550 r17572  
    212212            "   AND pzDownloadExp.camera IS NULL"
    213213            "   AND pzDownloadExp.telescope IS NULL"
     214            "   AND summitExp.fault = 0"
    214215        );
    215216
Note: See TracChangeset for help on using the changeset viewer.