Index: trunk/ippTools/share/staticskytool_todo.sql
===================================================================
--- trunk/ippTools/share/staticskytool_todo.sql	(revision 38295)
+++ trunk/ippTools/share/staticskytool_todo.sql	(revision 38296)
@@ -12,4 +12,5 @@
     skycell.glong,
     skycell.glat,
+    staticskyResult.path_base,
     IFNULL(Label.priority, 10000) AS priority
 FROM staticskyRun
@@ -20,5 +21,7 @@
 LEFT JOIN Label ON staticskyRun.label = Label.label
 WHERE
-   (staticskyRun.state = 'new' AND staticskyResult.sky_id IS NULL)
+   ((staticskyRun.state = 'new' AND staticskyResult.sky_id IS NULL)
+    OR (staticskyRun.state = 'update' AND staticskyResult.fault = 0))
+    
    AND (Label.active OR Label.active IS NULL)
 
Index: trunk/ippTools/src/staticskytool.c
===================================================================
--- trunk/ippTools/src/staticskytool.c	(revision 38295)
+++ trunk/ippTools/src/staticskytool.c	(revision 38296)
@@ -787,9 +787,10 @@
 
     PXOPT_LOOKUP_S16(fault, config->args, "-fault", true, false);
+    PXOPT_LOOKUP_S16(quality, config->args, "-set_quality", false, false);
 
     psMetadata *where = psMetadataAlloc();
     PXOPT_COPY_S64(config->args, where, "-sky_id",   "sky_id",   "==");
 
-    if (!pxSetFaultCode(config->dbh, "staticskyResult", where, fault, 0)) {
+    if (!pxSetFaultCode(config->dbh, "staticskyResult", where, fault, quality)) {
         psError(PS_ERR_UNKNOWN, false, "failed to set set fault flag");
         psFree (where);
Index: trunk/ippTools/src/staticskytoolConfig.c
===================================================================
--- trunk/ippTools/src/staticskytoolConfig.c	(revision 38295)
+++ trunk/ippTools/src/staticskytoolConfig.c	(revision 38296)
@@ -148,4 +148,5 @@
     psMetadataAddS64(updateresultArgs, PS_LIST_TAIL, "-sky_id", 0, "define staticksky ID (required)", 0);
     psMetadataAddS16(updateresultArgs, PS_LIST_TAIL, "-fault", 0, "set fault code (required)", 0);
+    psMetadataAddS16(updateresultArgs, PS_LIST_TAIL, "-set_quality",  0, "set quality", 0);
 
     // -exportrun
