Index: trunk/ippTools/share/pubtool_pending.sql
===================================================================
--- trunk/ippTools/share/pubtool_pending.sql	(revision 28372)
+++ trunk/ippTools/share/pubtool_pending.sql	(revision 28373)
@@ -27,5 +27,5 @@
         AND publishRun.state = 'new'
         AND diffRun.state IN ('full', 'cleaned', 'goto_cleaned')
-        AND (diffRun.magicked > 0 OR diffRun.diff_mode = 4 OR publishClient.magicked = 0)
+        AND (diffRun.magicked != 0 OR diffRun.diff_mode = 4 OR publishClient.magicked = 0)
         -- WHERE hook %s
     UNION
@@ -48,5 +48,5 @@
         AND publishRun.state ='new'
         AND camRun.state IN ('full', 'cleaned', 'goto_cleaned')
-        AND (camRun.magicked > 0 OR publishClient.magicked = 0)
+        AND (camRun.magicked != 0 OR publishClient.magicked = 0)
         -- WHERE hook %s
 ) AS publishToDo
Index: trunk/ippTools/src/pubtool.c
===================================================================
--- trunk/ippTools/src/pubtool.c	(revision 28372)
+++ trunk/ippTools/src/pubtool.c	(revision 28373)
@@ -293,5 +293,5 @@
     PXOPT_COPY_STR(config->args, where, "-stage", "publishClient.stage", "==");
     PXOPT_COPY_STR(config->args, where, "-comment", "publishClient.comment", "LIKE");
-    pxAddLabelSearchArgs(config, where, "-label", "label", "==");
+    pxAddLabelSearchArgs(config, where, "-label", "publishRun.label", "==");
 
     // optional
