Changeset 25540 for trunk/pstamp/scripts/pstampparse.pl
- Timestamp:
- Sep 24, 2009, 12:06:55 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/pstamp/scripts/pstampparse.pl (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pstamp/scripts/pstampparse.pl
r25368 r25540 16 16 use File::Basename qw(basename); 17 17 use Carp; 18 use POSIX qw( strftime ); 18 19 19 20 my $verbose; … … 98 99 my_die("wrong EXTVER $extver found in $request_file_name", $PS_EXIT_PROG_ERROR) if ($extver ne "1"); 99 100 101 100 102 # check for duplicate request name 103 my $duplicate_req_name = 0; 101 104 if ($req_id and !$no_update) { 102 105 my $command = "$pstamptool -listreq -name $req_name -not_req_id $req_id"; … … 109 112 if ($success) { 110 113 # -listreq succeeded duplicate request name 114 print STDERR "REQ_NAME $req_name has already been used\n"; 111 115 insertFakeJobForRow(undef, 0, $PSTAMP_DUP_REQUEST); 112 exit 0; 116 $duplicate_req_name = 1; 117 my $datestr = strftime "%Y%m%d%H%M%S.$req_id", gmtime; 118 $req_name = "ERROR.$datestr"; 119 #exit 0; 113 120 } 114 121 } … … 126 133 my_die("$command failed", $PS_EXIT_UNKNOWN_ERROR); 127 134 } 135 } 136 if ($duplicate_req_name) { 137 exit 0; 128 138 } 129 139
Note:
See TracChangeset
for help on using the changeset viewer.
