- Timestamp:
- May 9, 2013, 11:25:56 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20130419/pstamp/src/pstampdump.c
r27259 r35545 94 94 if (!strcmp(extname, "PS1_PS_REQUEST")) { 95 95 psString extver = psMetadataLookupStr(NULL, header, "EXTVER"); 96 psString action = psMetadataLookupStr(NULL, header, "ACTION"); 97 psString email = psMetadataLookupStr(NULL, header, "EMAIL"); 96 98 if (!extver) { 97 99 // work around bug in MOPS request files … … 105 107 } 106 108 } 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 } 108 122 } else if (!strcmp(extname, "PS1_PS_RESULTS")) { 109 123 psS64 req_id = psMetadataLookupS64(NULL, header, "REQ_ID");
Note:
See TracChangeset
for help on using the changeset viewer.
