Index: trunk/ippScripts/scripts/magic_destreak.pl
===================================================================
--- trunk/ippScripts/scripts/magic_destreak.pl	(revision 21371)
+++ trunk/ippScripts/scripts/magic_destreak.pl	(revision 21435)
@@ -32,7 +32,4 @@
 my ($replace, $remove, $release);
 my ($dbname, $save_temps, $verbose, $no_update, $no_op, $logfile);
-
-# XXX: remove this
-$release = 1;
 
 GetOptions(
@@ -104,7 +101,9 @@
 
 #
-# parse the replace and remove arguments check for errors and set upt
+# parse the replace and remove arguments check for errors and set up
 # the appropriate paths
-if (defined($replace) and ($replace eq "F")) {
+if (defined($replace) and ($replace eq "T")) {
+    $replace = 1;
+} else {
     $replace = 0;
 }
@@ -115,5 +114,7 @@
 }
 
-if (defined($remove) and ($remove eq "F")) {
+if (defined($remove) and ($remove eq "T")) {
+    $remove = 1;
+} else {
     $remove = 0;
 }
@@ -203,6 +204,4 @@
     my $command = "$streaksremove -stage $stage -tmproot $outroot -streaks $streaks -image $image";
 
-    $command .= " -release" if $release;
-
     $command .= " -class_id $class_id" if defined $class_id;
     $command .= " -recovery $recoveryroot" if defined $recoveryroot;
@@ -212,4 +211,7 @@
     $command .= " -weight $weight" if defined $weight;
     $command .= " -skycelllist $skycell_list" if defined $skycell_list;
+    $command .= " -replace" if $replace;
+    $command .= " -remove" if $remove;
+    $command .= " -release" if $release;
     $command .= " -dbname $dbname" if defined $dbname;
     unless (defined $no_op) {
@@ -232,4 +234,5 @@
     $command   .= " -magic_ds_id $magic_ds_id";
     $command   .= " -component $component";
+    $command   .= " -setmagicked" if $replace;
     $command   .= " -backup_path_base $backup_path_base" if $backup_path_base;
     $command   .= " -recovery_path_base $recovery_path_base" if $recovery_path_base;
