Index: trunk/ippTasks/dist.pro
===================================================================
--- trunk/ippTasks/dist.pro	(revision 30654)
+++ trunk/ippTasks/dist.pro	(revision 30856)
@@ -188,4 +188,8 @@
      # stderr $LOGSUBDIR/dist.process.load.log
 
+    # check current stage in case it is out of range because entries
+    # have been removed
+    if ($currentStage >= $DIST_STAGE:n) set currentStage = 0
+
     $run = disttool -pendingcomponent -stage $DIST_STAGE:$currentStage
     $currentStage ++
