Index: trunk/ippScripts/scripts/dist_component.pl
===================================================================
--- trunk/ippScripts/scripts/dist_component.pl	(revision 23250)
+++ trunk/ippScripts/scripts/dist_component.pl	(revision 23255)
@@ -74,9 +74,9 @@
     defined $outroot;
 
+$ipprc->redirect_output($logfile) if $logfile;
+
 if (($stage eq 'raw') and !defined $chip_path_base) {
     pod2usage( -msg => "Required options: --chip_path_base for raw stage", -exitval => 3);
 }
-
-$ipprc->redirect_output($logfile) if $logfile;
 
 $ipprc->define_camera($camera);
@@ -93,4 +93,11 @@
     $clean = 0;
 }
+
+# making a clean bundle of raw images doesn't make sense
+if (($stage eq "raw") and $clean) {
+    # well I suppose we could ship the log file....
+    &my_die("cannot create clean run at raw stage", $dist_id, $component, $PS_EXIT_CONFIG_ERROR);
+}
+
 
 # create the output directories if it is not a nebulous path and it doesn't exist
