Index: trunk/ippScripts/scripts/dist_advancerun.pl
===================================================================
--- trunk/ippScripts/scripts/dist_advancerun.pl	(revision 25942)
+++ trunk/ippScripts/scripts/dist_advancerun.pl	(revision 26015)
@@ -181,4 +181,5 @@
 {
     my $command = "$disttool -updaterun -dist_id $dist_id -set_state full";
+    $command .= " -set_outdir $outdir";
     $command .= " -dbname $dbname" if defined $dbname;
 
Index: trunk/ippScripts/scripts/dist_component.pl
===================================================================
--- trunk/ippScripts/scripts/dist_component.pl	(revision 25942)
+++ trunk/ippScripts/scripts/dist_component.pl	(revision 26015)
@@ -307,5 +307,5 @@
 }
 {
-    my $command = "$disttool -addprocessedcomponent -dist_id $dist_id -component $component";
+    my $command = "$disttool -addprocessedcomponent -dist_id $dist_id -component $component -outdir $outdir";
     $command .= " -name $file_name -bytes $bytes -md5sum $md5sum";
     $command .= " -dbname $dbname" if defined $dbname;
Index: trunk/ippScripts/scripts/dist_make_fileset.pl
===================================================================
--- trunk/ippScripts/scripts/dist_make_fileset.pl	(revision 25942)
+++ trunk/ippScripts/scripts/dist_make_fileset.pl	(revision 26015)
@@ -53,5 +53,5 @@
            'label=s'        => \$label,
            'dist_group=s'   => \$dist_group,
-           'filter=s'      => \$filter,
+           'filter=s'       => \$filter,
            'ds_dbhost=s'    => \$ds_dbhost,  # database host for the datastore database
            'ds_dbname=s'    => \$ds_dbname,  # database name for the datastore database
@@ -94,6 +94,6 @@
 
 # make sure that the database info file for this run exists
-my $dbinfo_file = "dbinfo.$stage.$stage_id.mdc";
-if (! -e "$dist_dir/$dbinfo_file" ) {
+my $dbinfo_file = "$dist_dir/dbinfo.$stage.$stage_id.mdc";
+if (! -e "$dbinfo_file" ) {
     &my_die("dbinfo file for dist run $dbinfo_file not found", $dist_id, $dest_id, $PS_EXIT_UNKNOWN_ERROR);
 }
@@ -101,6 +101,6 @@
 
 # make sure that the dirinfo file for this run exists
-my $dirinfo_file = "dirinfo.$stage.$stage_id.mdc";
-if (! -e "$dist_dir/$dirinfo_file" ) {
+my $dirinfo_file = "$dist_dir/dirinfo.$stage.$stage_id.mdc";
+if (! -e "$dirinfo_file" ) {
     &my_die("dirinfo file for dist run $dirinfo_file not found", $dist_id, $dest_id, $PS_EXIT_UNKNOWN_ERROR);
 }
@@ -142,10 +142,11 @@
     my $md5sum = $component->{md5sum};
     # name of the file
-    my $name = $component->{name};
+    my $file_name = $component->{name};
     # component id (class_is or skycell_id)
+    my $comp_dir = $component->{outdir};
     my $comp_name = $component->{component};
 
     # XXX: if tarfile is not always the right type we need to add a type to distComponent
-    print $listFile "$name|$size|$md5sum|tgz|$comp_name|\n";
+    print $listFile "$comp_dir/$file_name|$size|$md5sum|tgz|$comp_name|\n";
 }
 
@@ -156,5 +157,6 @@
 
     # the data store will refer to the distribution bundle via symlinks back to distRun.outdir
-    $command .= " --datapath $dist_dir --link";
+#    $command .= " --datapath $dist_dir --link";
+    $command .= " --abspath --link";
 
     # set the product specific columns in product list
