Index: /branches/pap_mops/ippScripts/scripts/publish_file.pl
===================================================================
--- /branches/pap_mops/ippScripts/scripts/publish_file.pl	(revision 24445)
+++ /branches/pap_mops/ippScripts/scripts/publish_file.pl	(revision 24446)
@@ -63,4 +63,6 @@
     defined $workdir;
 
+my $outroot = "$workdir/$product.$pub_id"; # Output root name
+
 my $ipprc = PS::IPP::Config->new() or
     &my_die( "Unable to set up", $pub_id, $PS_EXIT_CONFIG_ERROR ); # IPP configuration
@@ -113,6 +115,4 @@
 # Prepare for data store input
 my ($listFile, $listFileName) = tempfile("/tmp/publish.$pub_id.list.XXXX", UNLINK => !$save_temps );
-
-my $outroot = "$workdir/$product.$pub_id";
 
 # Process each file
@@ -173,4 +173,5 @@
         my $command = "$pubtool -add";
         $command .= " -pub_id $pub_id";
+        $command .= " -path_base $outroot";
         $command .= " -fault $fault";
         $command .= " -dbname $dbname" if defined $dbname;
