Index: trunk/ippScripts/scripts/stack_skycell.pl
===================================================================
--- trunk/ippScripts/scripts/stack_skycell.pl	(revision 16720)
+++ trunk/ippScripts/scripts/stack_skycell.pl	(revision 16721)
@@ -153,8 +153,8 @@
 
     # XXX details about supplying sources, etc, need to be specified in the libraries
-    #unless (defined $inputSources) {
-    #$inputSources = $ipprc->filename("PSWARP.OUTPUT.SOURCES", $file->{path_base});
-    #&my_die("Source file $inputSources does not exist", $stack_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists( $inputSources );
-    #}
+    unless (defined $inputSources) {
+	$inputSources = $ipprc->filename("PSWARP.OUTPUT.SOURCES", $file->{path_base});
+	&my_die("Source file $inputSources does not exist", $stack_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists( $inputSources );
+    }
 	
 }
@@ -166,5 +166,5 @@
 my $outputMask = $ipprc->filename("PPSTACK.OUTPUT.MASK", $outputRoot);
 my $outputWeight = $ipprc->filename("PPSTACK.OUTPUT.WEIGHT", $outputRoot);
-#my $outputSources = $ipprc->filename("PSPHOT.OUTPUT", $outputRoot, "none");
+my $outputSources = $ipprc->filename("PSPHOT.OUTPUT", $outputRoot, "none");
 #my $bin1Name =  $ipprc->filename("PPSTACK.BIN1", $outputRoot);
 #my $bin2Name =  $ipprc->filename("PPSTACK.BIN2", $outputRoot);
@@ -179,7 +179,6 @@
     $command .= " -stats $outputStats";
     $command .= " -recipe PPSTATS WARPSTATS";
-    # $command .= " -sources $inputSources"; XXX : see above re recipes
-    # $command .= " -target 5.0";
-    # $command .= " -photometry";
+    $command .= " -sources $inputSources";
+    $command .= " -photometry";
     $command .= " -tracedest $traceDest -log $logDest";
 
@@ -193,5 +192,5 @@
     &my_die("Couldn't find expected output file: $outputMask", $stack_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($outputMask);
     &my_die("Couldn't find expected output file: $outputWeight", $stack_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($outputWeight);
-#   &my_die("Couldn't find expected output file: $outputSources", $stack_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($outputSources);
+    &my_die("Couldn't find expected output file: $outputSources", $stack_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($outputSources);
 #   &my_die("Couldn't find expected output file: $bin1Name",    $stack_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($bin1Name);
 #   &my_die("Couldn't find expected output file: $bin2Name",    $stack_id, $PS_EXIT_SYS_ERROR) unless $ipprc->file_exists($bin2Name);
