Index: trunk/pstamp/src/pstampfinish.c
===================================================================
--- trunk/pstamp/src/pstampfinish.c	(revision 16594)
+++ trunk/pstamp/src/pstampfinish.c	(revision 16878)
@@ -238,6 +238,6 @@
     psString command = NULL;
 
-    psStringAppend(&command, "dsreg -dsdir %s -add -type PSTAMP %s %s", 
-            options->dsRoot, options->dsProduct, fileset_id);
+    psStringAppend(&command, "dsreg --add --type PSRESPONSE --product %s --fileset %s", 
+            options->dsProduct, fileset_id);
 
     printf("command is: %s\n", command);
@@ -245,5 +245,5 @@
     // open a pipe to dsreg and set up the output fileset
     // Each line of input describes one of the files
-    #define DSREG_FORMAT_STRING "%s chip na\n"
+    #define DSREG_FORMAT_STRING "%s|%s\n"
 
     FILE *pipe = popen(command, "w");
@@ -255,9 +255,9 @@
 
     // First the results table that we built above
-    fprintf(pipe, DSREG_FORMAT_STRING, "results.fits");
+    fprintf(pipe, DSREG_FORMAT_STRING, "results.fits", "psresults");
 
     // Next each of the stamps
     for (int i = 0; i < numStamps; i++) {
-        fprintf(pipe, DSREG_FORMAT_STRING, (psString) psArrayGet(stamps, i));
+        fprintf(pipe, DSREG_FORMAT_STRING, (psString) psArrayGet(stamps, i), "pstamp");
     }
 
