IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 10, 2008, 5:06:08 PM (18 years ago)
Author:
bills
Message:

changes to support get image (non postage stamp) jobs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pstamp/src/pstampfinish.c

    r16878 r16933  
    182182}
    183183
    184 static bool finishRequest(psrfOptions *options, pstampRequestRow *pReq, psArray *stoppedJobs)
     184static bool buildResultsFile(psrfOptions *options, pstampRequestRow *pReq, psArray *stoppedJobs)
    185185{
    186186    // build results file in dsRoot/pReq->outFileset
     
    238238    psString command = NULL;
    239239
    240     psStringAppend(&command, "dsreg --add --type PSRESPONSE --product %s --fileset %s",
     240    psStringAppend(&command, "dsreg --add --type PSRESULTS --product %s --fileset %s",
    241241            options->dsProduct, fileset_id);
    242242
     
    266266        psError(PS_ERR_UNKNOWN, true, "dsreg failed with status: %d", status);
    267267        return false;
     268    }
     269
     270    return true;
     271}
     272static bool finishRequest(psrfOptions *options, pstampRequestRow *pReq, psArray *stoppedJobs)
     273{
     274    if (pReq->resultsFile) {
     275        if (!buildResultsFile(options, pReq, stoppedJobs)) {
     276            return false;
     277        }
    268278    }
    269279    // update the database setting the request state to stop
Note: See TracChangeset for help on using the changeset viewer.