Index: trunk/ippScripts/scripts/detrend_norm_apply.pl
===================================================================
--- trunk/ippScripts/scripts/detrend_norm_apply.pl	(revision 11828)
+++ trunk/ippScripts/scripts/detrend_norm_apply.pl	(revision 11829)
@@ -168,5 +168,5 @@
 
     warn($msg);
-    if ($det_id and $iter and $class_id) {
+    if ($det_id and $iter and $class_id and not $no_update) {
 	my $command = "$dettool -addnormalizedimfile -det_id $det_id -iteration $iter -class_id $class_id -code $exit_code";
 	$command .= " -dbname $dbname" if defined $dbname;
Index: trunk/ippScripts/scripts/detrend_norm_exp.pl
===================================================================
--- trunk/ippScripts/scripts/detrend_norm_exp.pl	(revision 11828)
+++ trunk/ippScripts/scripts/detrend_norm_exp.pl	(revision 11829)
@@ -191,5 +191,5 @@
 
     warn($msg);
-    if ($det_id and $iter) {
+    if ($det_id and $iter and not $no_update) {
 	my $command = "$dettool -addprocessedimfile -det_id $det_id -iter $iter -code $exit_code";
 	$command .= " -dbname $dbname" if defined $dbname;
Index: trunk/ippScripts/scripts/detrend_process_exp.pl
===================================================================
--- trunk/ippScripts/scripts/detrend_process_exp.pl	(revision 11828)
+++ trunk/ippScripts/scripts/detrend_process_exp.pl	(revision 11829)
@@ -198,5 +198,5 @@
 
     warn($msg);
-    if ($det_id && $exp_tag) {
+    if ($det_id and $exp_tag and not $no_update) {
 	my $command = "$dettool -addprocessedexp -det_id $det_id -exp_tag $exp_tag -code $exit_code";
 	$command .= " -dbname $dbname" if defined $dbname;
Index: trunk/ippScripts/scripts/detrend_process_imfile.pl
===================================================================
--- trunk/ippScripts/scripts/detrend_process_imfile.pl	(revision 11828)
+++ trunk/ippScripts/scripts/detrend_process_imfile.pl	(revision 11829)
@@ -173,5 +173,5 @@
 
     warn($msg);
-    if ($det_id and $exp_tag and $class_id) {
+    if ($det_id and $exp_tag and $class_id and not $no_update) {
 	my $command = "$dettool -addprocessedimfile -det_id $det_id -exp_tag $exp_tag -class_id $class_id -code $exit_code";
 	$command .= " -dbname $dbname" if defined $dbname;
Index: trunk/ippScripts/scripts/detrend_reject_exp.pl
===================================================================
--- trunk/ippScripts/scripts/detrend_reject_exp.pl	(revision 11828)
+++ trunk/ippScripts/scripts/detrend_reject_exp.pl	(revision 11829)
@@ -276,5 +276,5 @@
 
     warn($msg);
-    if ($det_id and $iter) {
+    if ($det_id and $iter and not $no_update) {
 	my $command = "$dettool -adddetrunsummary -det_id $det_id -iteration $iter -code $exit_code";
 	$command .= " -dbname $dbname" if defined $dbname;
Index: trunk/ippScripts/scripts/detrend_reject_imfile.pl
===================================================================
--- trunk/ippScripts/scripts/detrend_reject_imfile.pl	(revision 11828)
+++ trunk/ippScripts/scripts/detrend_reject_imfile.pl	(revision 11829)
@@ -313,5 +313,5 @@
 
     warn($msg);
-    if ($det_id and $iter and $exp_tag) {
+    if ($det_id and $iter and $exp_tag and not $no_update) {
 	my $command = "$dettool -addresidexp -det_id $det_id -iteration $iter -exp_tag $exp_tag -code $exit_code";
 	$command .= " -dbname $dbname" if defined $dbname;
Index: trunk/ippScripts/scripts/detrend_resid.pl
===================================================================
--- trunk/ippScripts/scripts/detrend_resid.pl	(revision 11828)
+++ trunk/ippScripts/scripts/detrend_resid.pl	(revision 11829)
@@ -189,5 +189,5 @@
     } else {
 	# May be undefined if there is only a single imfile
-	$command .= ' -bg_stdev 0';
+	$command .= ' -bg_mean_stdev 0';
     }
 
@@ -217,5 +217,5 @@
 
     warn($msg);
-    if ($det_id and $iter and $exp_tag) {
+    if ($det_id and $iter and $exp_tag and not $no_update) {
 	my $command = "$dettool -addresidimfile -det_id $det_id -iteration $iter -exp_tag $exp_tag -class_id $class_id -code $exit_code";
 	$command .= " -dbname $dbname" if defined $dbname;
Index: trunk/ippScripts/scripts/detrend_stack.pl
===================================================================
--- trunk/ippScripts/scripts/detrend_stack.pl	(revision 11828)
+++ trunk/ippScripts/scripts/detrend_stack.pl	(revision 11829)
@@ -184,5 +184,5 @@
 
     warn($msg);
-    if ($det_id and $iter and $class_id) {
+    if ($det_id and $iter and $class_id and not $no_update) {
 	my $command = "$dettool -addstacked -det_id $det_id -iteration $iter -class_id $class_id -code $exit_code";
 	$command .= " -dbname $dbname" if defined $dbname;
Index: trunk/ippScripts/scripts/phase0_exp.pl
===================================================================
--- trunk/ippScripts/scripts/phase0_exp.pl	(revision 11828)
+++ trunk/ippScripts/scripts/phase0_exp.pl	(revision 11829)
@@ -253,5 +253,5 @@
     my $exp_tag = $_[0];
     my $exit_code = $_[1];
-    if ($exp_tag) {
+    if ($exp_tag and not $no_update) {
 	my $command = "$p0tool -addprocessedexp -exp_tag $exp_tag -code $exit_code";
 	$command .= " -dbname $dbname" if defined $dbname;
Index: trunk/ippScripts/scripts/phase0_imfile.pl
===================================================================
--- trunk/ippScripts/scripts/phase0_imfile.pl	(revision 11828)
+++ trunk/ippScripts/scripts/phase0_imfile.pl	(revision 11829)
@@ -232,5 +232,5 @@
     my $class_id = $_[1];
     my $exit_code = $_[2];
-    if ($exp_tag && $class_id) {
+    if ($exp_tag && $class_id and not $no_update) {
 	my $command = "$p0tool -addprocessedimfile -exp_tag $exp_tag -class_id $class_id -code $exit_code";
 	$command .= " -dbname $dbname" if defined $dbname;
Index: trunk/ippScripts/scripts/phase2.pl
===================================================================
--- trunk/ippScripts/scripts/phase2.pl	(revision 11828)
+++ trunk/ippScripts/scripts/phase2.pl	(revision 11829)
@@ -160,5 +160,5 @@
 
     warn($msg);
-    if ($exp_tag and $class_id) {
+    if ($exp_tag and $class_id and not $no_update) {
 	my $command = "$p2tool -addprocessedimfile";
 	$command .= " -exp_tag $exp_tag";
Index: trunk/ippScripts/scripts/phase3.pl
===================================================================
--- trunk/ippScripts/scripts/phase3.pl	(revision 11828)
+++ trunk/ippScripts/scripts/phase3.pl	(revision 11829)
@@ -252,5 +252,5 @@
 
     warn($msg);
-    if ($exp_tag) {
+    if ($exp_tag and not $no_update) {
 	my $command = "$p3tool -addprocessedexp -exp_tag $exp_tag -code $exit_code";
 	$command .= " -dbname $dbname" if defined $dbname;
Index: trunk/ippScripts/scripts/phase4_overlap.pl
===================================================================
--- trunk/ippScripts/scripts/phase4_overlap.pl	(revision 11828)
+++ trunk/ippScripts/scripts/phase4_overlap.pl	(revision 11829)
@@ -123,5 +123,5 @@
 
     warn($msg);
-    if ($p4_id) {
+    if ($p4_id and not $no_update) {
 	my $command = "$p4tool -addoverlap -p4_id $p4_id -code $exit_code";
 	$command .= " -dbname $dbname" if defined $dbname;
Index: trunk/ippScripts/scripts/phase4_warp.pl
===================================================================
--- trunk/ippScripts/scripts/phase4_warp.pl	(revision 11828)
+++ trunk/ippScripts/scripts/phase4_warp.pl	(revision 11829)
@@ -164,5 +164,5 @@
 
     warn($msg);
-    if ($p4_id and $skycell_id) {
+    if ($p4_id and $skycell_id and not $no_update) {
 	my $command = "$p4tool -warped -p4_id $p4_id -skycell_id $skycell_id -code $exit_code";
 	$command .= " -dbname $dbname" if defined $dbname;
Index: trunk/ippScripts/scripts/phase5_subtract.pl
===================================================================
--- trunk/ippScripts/scripts/phase5_subtract.pl	(revision 11828)
+++ trunk/ippScripts/scripts/phase5_subtract.pl	(revision 11829)
@@ -199,5 +199,5 @@
 
     warn($msg);
-    if ($det_id and $iter and $exp_tag) {
+    if ($det_id and $iter and $exp_tag and not $no_update) {
 	my $command = "$p5tool -updaterun -p5_id $p5_id -state stop -code $exit_code";
 	$command .= " -dbname $dbname" if defined $dbname;
