Index: trunk/ippScripts/scripts/dist_component.pl
===================================================================
--- trunk/ippScripts/scripts/dist_component.pl	(revision 23295)
+++ trunk/ippScripts/scripts/dist_component.pl	(revision 23396)
@@ -40,5 +40,5 @@
 my ($dist_id, $camera, $stage, $stage_id, $component, $path_base, $chip_path_base, $clean);
 my ($outroot, $run_state, $data_state, $magicked);
-my ($dbname, $save_temps, $verbose, $no_update, $no_op, $logfile);
+my ($dbname, $save_temps, $verbose, $no_update, $logfile);
 
 GetOptions(
@@ -59,5 +59,4 @@
            'verbose'        => \$verbose,    # Print stuff?
            'no-update'      => \$no_update,  # Don't update the database?
-           'no-op'          => \$no_op,      # Don't do any operations?
            'logfile=s'      => \$logfile,
            ) or pod2usage( 2 );
@@ -100,5 +99,4 @@
 }
 
-
 # create the output directories if it is not a nebulous path and it doesn't exist
 if (index($outroot, "neb://") != 0) {
@@ -134,6 +132,12 @@
 foreach my $file (@$file_list) {
     my $base = basename($file);
+    my $path = $ipprc->file_resolve($file);
+    # if file is not found, just skip it.
+    # This is not always the right thing to do.
+    # For example if warpSkyfile is ignored, there won't be many of the data products
+    # the new config dump will only list the files actually produced.
+    next if !$path;
+
     push @base_list, $base;
-    my $path = $ipprc->file_resolve($file);
     symlink $path, "$tmpdir/$base";
 }
@@ -181,13 +185,9 @@
     $command .= " -chip_mask $mask" if ($stage eq 'chip' and $mask);
     $command .= " -weight $variance" if $variance;
-    unless (defined $no_op) {
-        my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
-            run(command => $command, verbose => $verbose);
-        unless ($success) {
-            $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);
-            &my_die("Unable to perform $command: $error_code", $dist_id, $component, $error_code);
-        }
-    } else {
-        print "skipping command $command\n";
+    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
+        run(command => $command, verbose => $verbose);
+    unless ($success) {
+        $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);
+        &my_die("Unable to perform $command: $error_code", $dist_id, $component, $error_code);
     }
 }
@@ -207,13 +207,9 @@
     my $command = "tar -C $tmpdir -czhf $tarfile .";
 
-    unless (defined $no_op) {
-        my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
-            run(command => $command, verbose => $verbose);
-        unless ($success) {
-            $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);
-            &my_die("Unable to perform $command: $error_code", $dist_id, $component, $error_code);
-        }
-    } else {
-        print "skipping command $command\n";
+    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
+        run(command => $command, verbose => $verbose);
+    unless ($success) {
+        $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);
+        &my_die("Unable to perform $command: $error_code", $dist_id, $component, $error_code);
     }
 
@@ -227,8 +223,5 @@
     $bytes = $finfo[7];
 
-    if (!$save_temps) {
-        # delete the temp directory and it's contents
-        system "rm -r $tmpdir";
-    }
+    delete_tmpdir($tmpdir);
 }
 {
@@ -342,7 +335,15 @@
     }
 
+    delete_tmpdir();
+
     carp($msg);
     exit $exit_code;
 }
 
+sub delete_tmpdir {
+    if (!$save_temps) {
+        system "rm -r $tmpdir";
+    }
+}
+
 __END__
