Index: trunk/ppStack/src/ppStackPhotometry.c
===================================================================
--- trunk/ppStack/src/ppStackPhotometry.c	(revision 21183)
+++ trunk/ppStack/src/ppStackPhotometry.c	(revision 21259)
@@ -138,5 +138,14 @@
     psMetadataAddImageMask (recipe, PS_LIST_TAIL, "MARK.PSPHOT", PS_META_REPLACE, "Bits to use for mark", markValue);
 
-    if (!psphotReadout(config, view)) {
+    // XXX replace with psphotReadoutKnownSources (config, view)
+    // XXX this function requires that we construct the input source list and place it on PSPHOT.INPUT.CMF
+    pmCell *sourcesCell = pmFPAfileThisCell(config->files, view, "PPSTACK.OUTPUT");
+    psArray *inSources = psMetadataLookupPtr (NULL, sourcesCell->analysis, "PSPHOT.SOURCES");
+    if (!inSources) {
+        psError(PS_ERR_UNKNOWN, false, "Unable to find input sources");
+        return false;
+    }
+
+    if (!psphotReadoutKnownSources(config, view, inSources)) {
         // Clear the error, so that the output files are written.
         psWarning("Unable to perform photometry on stacked image.");
