Index: trunk/ippScripts/scripts/dist_make_fileset.pl
===================================================================
--- trunk/ippScripts/scripts/dist_make_fileset.pl	(revision 24125)
+++ trunk/ippScripts/scripts/dist_make_fileset.pl	(revision 24199)
@@ -213,9 +213,11 @@
     if ($stage eq 'stack') {
         return "stack.$stage_id";
+    } elsif ($stage eq 'diff') {
+        return "diff.$stage_id";
     }
 
     #
-    # we are a long ways away from the rawExp in the pipline. Rather than do some exotic
-    # queries in the disttool, we look up the exp_name in the database using DBI
+    # we are a long ways away from the rawExp in the pipeline. Rather than do some 
+    # very long joins in disttool, we look up the exp_name in the database using DBI
     #
     my $dbh = getDBHandle($ipprc, $dbname);
@@ -236,6 +238,4 @@
         $query = "SELECT exp_name FROM warpRun JOIN fakeRun USING(fake_id) JOIN camRun USING(cam_id)"
                     . " JOIN chipRun USING(chip_id) JOIN rawExp USING(exp_id) WHERE warp_id = $stage_id";
-    } elsif ($stage eq 'diff') {
-        $query = "SELECT exp_name FROM diffRun JOIN rawExp USING(exp_id) WHERE diff_id = $stage_id";
     } else {
         &my_die("$stage is invalid value for stage\n");
