Index: trunk/ippScripts/scripts/detrend_reject_imfile.pl
===================================================================
--- trunk/ippScripts/scripts/detrend_reject_imfile.pl	(revision 9004)
+++ trunk/ippScripts/scripts/detrend_reject_imfile.pl	(revision 9091)
@@ -15,5 +15,5 @@
 use Pod::Usage qw( pod2usage );
 
-my ($det_id, $iter, $exp_id, $det_type);
+my ($det_id, $iter, $exp_id, $det_type, $no_update);
 GetOptions(
     'det_id|d=s'        => \$det_id,
@@ -21,4 +21,5 @@
     'exp_id|e=s'        => \$exp_id,
     'det_type|t=s'      => \$det_type,
+    'no-update'         => \$no_update
 ) or pod2usage( 2 );
 
@@ -193,5 +194,5 @@
 
 # Add the result into the database
-{
+unless ($no_update) {
     my $command = "$dettool -addresidexp -det_id $det_id -iteration $iter -exp_id $exp_id " .
 	"-recip " . RECIPE1() . "," . RECIPE2() . " -b1_uri $jpeg1Name -b2_uri $jpeg2Name " .
