Index: trunk/pstamp/scripts/pstampparse.pl
===================================================================
--- trunk/pstamp/scripts/pstampparse.pl	(revision 25125)
+++ trunk/pstamp/scripts/pstampparse.pl	(revision 25130)
@@ -374,14 +374,15 @@
         my $fault = 0;
 
-if (0) {
-        # XXX this doesn't work because not all ippTools outputs include data_state
-        # fix chipTool also need to not make this test for raw stage
-        if ((($stage ne 'stack') and ($image->{data_state} ne 'full')) or $image->{state} ne 'full' ){
-            # XXX here is where we need to queue an update job
-            # for now just say that the image is not available
-            $newState = 'stop';
-            $fault = 49;
-        }
-}
+        if (($stage ne 'stack') and ($stage ne 'raw')) {
+            if (($image->{state} eq 'goto_purged') or ($image->{data_state} eq 'purged')) {
+                $newState = 'stop';
+                $fault = $PSTAMP_GONE;
+            } elsif (($image->{data_state} ne 'full') or ($image->{state} ne 'full' )) {
+                # XXX here is where we need to queue an update job
+                # for now just say that the image is not available
+                $newState = 'stop';
+                $fault = $PSTAMP_NOT_AVAILABLE;
+            }
+        }
 
         $num_jobs++;
