IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 9, 2013, 11:25:56 AM (13 years ago)
Author:
eugene
Message:

merge changes from trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20130419/pstamp/src/pstampdump.c

    r27259 r35545  
    9494        if (!strcmp(extname, "PS1_PS_REQUEST")) {
    9595            psString extver = psMetadataLookupStr(NULL, header, "EXTVER");
     96            psString action = psMetadataLookupStr(NULL, header, "ACTION");
     97            psString email = psMetadataLookupStr(NULL, header, "EMAIL");
    9698            if (!extver) {
    9799                // work around bug in MOPS request files
     
    105107                }
    106108            }
    107             printf("%s %s %s\n", extname, extver, req_name);
     109            if (!strcmp(extver, "1")) {
     110                printf("%s %s %s\n", extname, extver, req_name);
     111            } else {
     112                if (!action) {
     113                    psErrorStackPrint(stderr, "failed to find action in fits header of: %s\n", fileName);
     114                    return PS_EXIT_DATA_ERROR;
     115                }
     116                if (!email) {
     117                    psErrorStackPrint(stderr, "failed to find action in fits header of: %s\n", email);
     118                    return PS_EXIT_DATA_ERROR;
     119                }
     120                printf("%s %s %s %s %s\n", extname, extver, req_name, action, email);
     121            }
    108122        } else if (!strcmp(extname, "PS1_PS_RESULTS")) {
    109123            psS64 req_id = psMetadataLookupS64(NULL, header, "REQ_ID");
Note: See TracChangeset for help on using the changeset viewer.