Index: /trunk/ippScripts/scripts/dist_advancerun.pl
===================================================================
--- /trunk/ippScripts/scripts/dist_advancerun.pl	(revision 23702)
+++ /trunk/ippScripts/scripts/dist_advancerun.pl	(revision 23703)
@@ -70,29 +70,28 @@
 my $mdcParser = PS::IPP::Metadata::Config->new;
 
-my $tool;
+my $tool_cmd;
 if ($stage eq "raw") {
-    $tool = "regtool";
+    $tool_cmd = "$regtool -exp_id";
 } elsif ($stage eq "chip") {
-    $tool = "chiptool";
+    $tool_cmd = "$chiptool -chip_id";
 } elsif ($stage eq "camera") {
-    $tool = "camtool";
+    $tool_cmd = "$camtool -cam_id";
 } elsif ($stage eq "fake") {
-    $tool = "faketool";
+    $tool_cmd = "$faketool -fake_id";
 } elsif ($stage eq "warp") {
-    $tool = "warptool";
+    $tool_cmd = "$warptool -warp_id";
 } elsif ($stage eq "stack") {
-    $tool = "stacktool";
+    $tool_cmd = "$stacktool -stack_id";
 } elsif ($stage eq "diff") {
-    $tool = "difftool";
+    $tool_cmd = "$difftool -diff_id";
 } else {
     &my_die("Unexpected stage: $stage", $dist_id, $PS_EXIT_CONFIG_ERROR);
 }
 
-# XXX Should we create a file rule for this
+# XXX we should create a file rule for this
 my $outfile = "$outroot/dbinfo.$stage.$stage_id.mdc";
 
 {
-    my $id_arg = "-$stage" . "_id";
-    my $command = "$tool -exportrun $id_arg $stage_id -outfile $outfile";
+    my $command = "$tool_cmd $stage_id -exportrun -outfile $outfile";
     $command .= " -dbname $dbname" if defined $dbname;
 
