Index: trunk/ippScripts/scripts/ipp_cleanup.pl
===================================================================
--- trunk/ippScripts/scripts/ipp_cleanup.pl	(revision 25801)
+++ trunk/ippScripts/scripts/ipp_cleanup.pl	(revision 25835)
@@ -488,5 +488,5 @@
 	# No skycells were found for some reason.
 	# Not technically an "error," but a "you told me to do X, and I can't. Please fix this yourself."
-	my $command = "$stacktool -updaterun -stack_id $stage_id -state $error_state";
+	my $command = "$stacktool -updaterun -stack_id $stage_id -set_state $error_state";
 	$command .= " -dbname $dbname" if defined $dbname;
 	
@@ -561,11 +561,11 @@
 	    my $command = "$stacktool -stack_id $stage_id";
 	    if ($mode eq "goto_purged") {
-		$command .= " -updaterun -state purged";
+		$command .= " -updaterun -set_state purged";
 	    } 
 	    elsif ($mode eq "goto_cleaned") {
-		$command .= " -updaterun -state cleaned";
+		$command .= " -updaterun -set_state cleaned";
 	    }
 	    elsif ($mode eq "goto_scrubbed") {
-		$command .= " -updaterun -state scrubbed";
+		$command .= " -updaterun -set_state scrubbed";
 	    }
 	    $command .= " -dbname $dbname" if defined $dbname;
@@ -589,5 +589,5 @@
 
 	} else {
-	    my $command = "$stacktool -updaterun  -stack_id $stage_id -state $error_state";
+	    my $command = "$stacktool -updaterun  -stack_id $stage_id -set_state $error_state";
 	    $command .= " -dbname $dbname" if defined $dbname;
 	    
@@ -624,5 +624,5 @@
 	# No skycells were found for some reason.
 	# Not technically an "error," but a "you told me to do X, and I can't. Please fix this yourself."
-	my $command = "$difftool -updaterun -diff_id $stage_id -state $error_state";
+	my $command = "$difftool -updaterun -diff_id $stage_id -set_state $error_state";
 	$command .= " -dbname $dbname" if defined $dbname;
 	
@@ -741,5 +741,5 @@
 
 	} else {
-	    my $command = "$difftool -updaterun -diff_id $stage_id -state $error_state";
+	    my $command = "$difftool -updaterun -diff_id $stage_id -set_state $error_state";
 
 	    $command .= " -dbname $dbname" if defined $dbname;
