Index: trunk/pstamp/scripts/pstampparse.pl
===================================================================
--- trunk/pstamp/scripts/pstampparse.pl	(revision 25319)
+++ trunk/pstamp/scripts/pstampparse.pl	(revision 25320)
@@ -14,4 +14,5 @@
 use PS::IPP::PStamp::Job qw( :standard );
 use File::Temp qw(tempfile);
+use File::Basename qw(basename);
 use Carp;
 
@@ -98,6 +99,6 @@
 
 # check for duplicate request name
-if (!$no_update) {
-    my $command = "$pstamptool -listreq  -name $req_name";
+if ($req_id and !$no_update) {
+    my $command = "$pstamptool -listreq  -name $req_name -not_req_id $req_id";
     $command .= " -dbname $dbname" if $dbname;
     $command .= " -dbserver $dbserver" if $dbserver;
@@ -110,7 +111,4 @@
         insertFakeJobForRow(undef, 0, $PSTAMP_DUP_REQUEST);
         exit 0;
-    } elsif ($exitStatus ne $PS_EXIT_DATA_ERROR) {
-        # wrong error code something else is wrong
-        my_die("$command failed", $exitStatus);
     }
 }
@@ -369,5 +367,7 @@
         }
 
-        my $output_base = "$out_dir/${rownum}_${job_num}";
+        my $base = basename($image->{path_base});
+
+        my $output_base = "$out_dir/${rownum}_${job_num}_${base}";
         my $argslist = "${output_base}.args";
 
