Index: /trunk/ippScripts/scripts/dist_bundle.pl
===================================================================
--- /trunk/ippScripts/scripts/dist_bundle.pl	(revision 35956)
+++ /trunk/ippScripts/scripts/dist_bundle.pl	(revision 35957)
@@ -53,7 +53,6 @@
                       'PPSTACK.OUTPUT.MASK' => 'mask',
                       'PPSTACK.OUTPUT.VARIANCE' => 'variance' );
-my %sky_cleaned   = ( 'PSPHOT.STACK.OUTPUT.IMAGE' => 'image',
-                      'PSPHOT.STACK.OUTPUT.MASK' => 'mask',
-                      'PSPHOT.STACK.OUTPUT.VARIANCE' => 'variance' );
+my %sky_cleaned   = ();
+my %skycal_cleaned = ();
 
 
@@ -110,4 +109,6 @@
     defined $outroot;
 
+$no_magic = 1;
+
 if ($stage eq 'raw' and !$clean and !$no_magic) {
     
@@ -462,4 +463,6 @@
     } elsif ($stage eq "sky") {
         $type = $sky_cleaned{$rule};
+    } elsif ($stage eq "skycal") {
+        $type = $skycal_cleaned{$rule};
     } else {
         &my_die("$stage is not a valid stage", $component, $PS_EXIT_CONFIG_ERROR);
@@ -546,9 +549,7 @@
         $config_file_rule = "PPSTACK.CONFIG";
     } elsif ($stage eq "sky") {
-        if (1 or $num_sky_inputs > 1) {
-            $config_file_rule = "PSPHOT.STACK.CONFIG";
-        } else {
-            $config_file_rule = "PSPHOT.SKY.CONFIG";
-        }
+        $config_file_rule = "PSPHOT.STACK.CONFIG";
+    } elsif ($stage eq "skycal") {
+        $config_file_rule = "PSASTRO.CONFIG";
     } else {
         &my_die("$stage is not a valid stage", $component, $PS_EXIT_CONFIG_ERROR);
