Index: trunk/ippTools/share/disttool_pendingcomponent.sql
===================================================================
--- trunk/ippTools/share/disttool_pendingcomponent.sql	(revision 23717)
+++ trunk/ippTools/share/disttool_pendingcomponent.sql	(revision 23721)
@@ -76,4 +76,5 @@
     AND distComponent.dist_id IS NULL
     AND (distRun.clean OR chipRun.magicked OR distRun.no_magic)
+    AND (chipRun.state = 'full' OR (distRun.clean AND chipRun.state = 'cleaned'))
     -- where hook 2 %s
 UNION
@@ -108,4 +109,5 @@
     AND distComponent.dist_id IS NULL
     AND (distRun.clean OR chipRun.magicked OR distRun.no_magic)
+    AND (camRun.state = 'full' OR (distRun.clean AND camRun.state = 'cleaned'))
     -- where hook 3 %s
 UNION
@@ -172,4 +174,5 @@
     AND distComponent.dist_id IS NULL
     AND (distRun.clean OR warpRun.magicked OR distRun.no_magic)
+    AND (warpRun.state = 'full' OR (distRun.clean AND warpRun.state = 'cleaned'))
     -- where hook 5 %s
 UNION
@@ -204,4 +207,5 @@
     AND distComponent.dist_id IS NULL
     AND (distRun.clean OR diffRun.magicked OR distRun.no_magic)
+    AND (diffRun.state = 'full' OR (distRun.clean AND diffRun.state = 'cleaned'))
     -- where hook 6 %s
 UNION
@@ -252,4 +256,5 @@
     AND distRun.stage = 'stack'
     AND distComponent.dist_id IS NULL
+    AND (stackRun.state = 'full' OR (distRun.clean AND stackRun.state = 'cleaned'))
     -- where hook 7 %s
 ) as Foo
