Changeset 35413 for branches/eam_branches/ipp-20130307/PS-IPP-PStamp/lib/PS/IPP/PStamp/RequestFile.pm
- Timestamp:
- Apr 19, 2013, 3:42:02 PM (13 years ago)
- Location:
- branches/eam_branches/ipp-20130307
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
PS-IPP-PStamp/lib/PS/IPP/PStamp/RequestFile.pm (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20130307
- Property svn:mergeinfo changed
/trunk merged: 35353-35354,35356-35368,35380,35383-35384,35388-35392,35394-35400,35409-35411
- Property svn:mergeinfo changed
-
branches/eam_branches/ipp-20130307/PS-IPP-PStamp/lib/PS/IPP/PStamp/RequestFile.pm
r34448 r35413 52 52 $PSTAMP_NO_OVERLAP 53 53 $PSTAMP_NOT_AUTHORIZED 54 $PSTAMP_UNKNOWN_PROJECT 54 55 ); 55 56 our %EXPORT_TAGS = (standard => [@EXPORT_OK]); … … 101 102 our $PSTAMP_NO_OVERLAP = 28; 102 103 our $PSTAMP_NOT_AUTHORIZED = 29; 104 our $PSTAMP_UNKNOWN_PROJECT = 22; 103 105 104 106 … … 167 169 my $fields_output; 168 170 { 169 my $command = "echo $request_file_name | $fields -x 0 EXTNAME EXTVER REQ_NAME ACTION USERNAMEEMAIL";171 my $command = "echo $request_file_name | $fields -x 0 EXTNAME EXTVER REQ_NAME ACTION EMAIL"; 170 172 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 171 173 run(command => $command, verbose => $verbose); … … 187 189 if ($extver > 1) { 188 190 $header{ACTION} = $action; 189 $header{USER} = $username;190 191 $header{EMAIL} = $email; 191 192 } else { 192 193 $header{ACTION} = $action = "PROCESS"; 193 $header{USERNAME} = 'null';194 194 $header{EMAIL} = 'null'; 195 195 } 196 196 197 if ($action eq "LIST") { 198 return (\%header, undef); 199 } elsif ($action ne "PROCESS") { 200 die "unexpected request ACTION found: $action in $request_file_name"; 197 if ($action ne "PROCESS" and $action ne 'PREVIEW') { 198 die "\nunexpected request ACTION found: $action in $request_file_name"; 201 199 } 202 200
Note:
See TracChangeset
for help on using the changeset viewer.
