Changeset 30016
- Timestamp:
- Dec 10, 2010, 12:03:04 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/pstamp/scripts/pstampparse.pl (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pstamp/scripts/pstampparse.pl
r29578 r30016 126 126 } 127 127 128 # Adjust the label for requests coming in over the web interaface 129 130 my $label_changed = 0; 131 if ($label and $label eq "WEB.UP") { 132 my $lcname = lc($req_name); 133 if ($lcname =~ /pitt/) { 134 $label = "PITT"; 135 $label_changed = 1; 136 } elsif ($lcname =~ /cfa/) { 137 $label = "CFA"; 138 $label_changed = 1; 139 } elsif ($lcname =~ /durham/) { 140 $label = "DURHAM"; 141 $label_changed = 1; 142 } elsif ($lcname =~ /qub/) { 143 $label = "QUB"; 144 $label_changed = 1; 145 } 146 print "Setting label for $req_name to $label\n" if $label_changed; 147 } 148 149 128 150 if ($req_id and !$no_update) { 129 151 # update the database with the request name. This will be used as the … … 131 153 my $command = "$pstamptool -updatereq -req_id $req_id -set_name $req_name"; 132 154 $command .= " -set_outProduct $product"; 155 $command .= " -set_label $label" if $label_changed; 133 156 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) = 134 157 run(command => $command, verbose => $verbose);
Note:
See TracChangeset
for help on using the changeset viewer.
