Index: trunk/ippScripts/scripts/detrend_process.pl
===================================================================
--- trunk/ippScripts/scripts/detrend_process.pl	(revision 9090)
+++ trunk/ippScripts/scripts/detrend_process.pl	(revision 9091)
@@ -14,5 +14,5 @@
 use Pod::Usage qw( pod2usage );
 
-my ($det_id, $exp_id, $class, $class_id, $det_type, $input_uri, $output_uri);
+my ($det_id, $exp_id, $class, $class_id, $det_type, $input_uri, $output_uri, $no_update);
 GetOptions(
     'det_id|d=s'        => \$det_id,
@@ -22,4 +22,5 @@
     'det_type|t=s'      => \$det_type,
     'input_uri|u=s'     => \$input_uri,
+    'no-update'         => \$no_update
 ) or pod2usage( 2 );
 
@@ -85,5 +86,5 @@
 
 # Add the processed file to the database
-{
+unless ($no_update) {
     my $command = "$dettool -addprocessed -det_id $det_id -exp_id $exp_id " .
 	"-class_id $class_id -recip $recipe -uri $outputImage"; # Command to run dettool
