IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 20809


Ignore:
Timestamp:
Nov 20, 2008, 2:20:17 PM (17 years ago)
Author:
jhoblitt
Message:

don't allow filesets to be empty

File:
1 edited

Legend:

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

    r18399 r20809  
    114114    psArray *newImfiles = parseFiles(config, cmdOutput);
    115115    if (!newImfiles) {
    116         // XXX not nessicarily an error
     116        // XXX not nessicarily an error but we don't want to keep trying to
     117        // download an "empty" fileset.
     118        // mark the summitExp row as faulted
     119        if (!p_psDBRunQuery(config->dbh, "UPDATE summitExp SET fault = %d WHERE exp_name = '%s' AND camera = '%s' AND telescope = '%s'", 42, filesetid, camera, telescope)) {
     120                psError(PS_ERR_UNKNOWN, false, "database error");
     121        }
    117122        psError(PS_ERR_UNKNOWN, true, "no new files/imfiles");
    118123        psFree(cmdOutput);
Note: See TracChangeset for help on using the changeset viewer.