- Timestamp:
- Mar 30, 2010, 9:14:30 AM (16 years ago)
- File:
-
- 1 edited
-
trunk/pstamp/scripts/pstampparse.pl (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pstamp/scripts/pstampparse.pl
r27356 r27524 233 233 # user requested us to search all components. Set to "" 234 234 $search_component = "" if $search_component eq "all"; 235 236 if (!check_image_type($stage)) { 237 print STDERR "invalid IMG_TYPE for row $rownum\n" if $verbose; 238 insertFakeJobForRow($row, 1, $PSTAMP_INVALID_REQUEST); 239 $num_jobs++; 240 next; 241 } 235 242 236 243 if ((($job_type eq "stamp") or ($req_type eq "bycoord")) and ! validROI($row)) { … … 958 965 } 959 966 967 sub check_image_type 968 { 969 my $img_type = shift; 970 if (!$img_type) { 971 print STDERR "NULL IMG_TYPE supplied\n"; 972 return 0; 973 } 974 if (($img_type eq "raw") or ($img_type eq "chip") or ($img_type eq "warp") or 975 ($img_type eq "stack") or ($img_type eq "diff")) { 976 return 1; 977 } else { 978 print STDERR "$img_type is not a valid IMG_TYPE\n"; 979 return 0; 980 } 981 } 982 960 983 sub my_die 961 984 {
Note:
See TracChangeset
for help on using the changeset viewer.
