Changeset 26986 for trunk/ippScripts/scripts/publish_file.pl
- Timestamp:
- Feb 18, 2010, 11:50:07 AM (16 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/publish_file.pl (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/publish_file.pl
r25927 r26986 82 82 my ($dsFile, $dsFileName) = tempfile("/tmp/publish.$pub_id.ds.XXXX", UNLINK => !$save_temps ); 83 83 84 my $comment; # Comment for exposure 84 85 if ($stage eq 'camera') { 85 86 my $command = "camtool -processedexp -cam_id $stage_id"; … … 109 110 my $astrom = sqrt($comp->{sigma_ra}**2 + $comp->{sigma_dec}**2); 110 111 my $name = "cam_$cam_id"; 112 $comment = $comp->{comment}; 111 113 112 114 if ($product eq "MONET") { … … 157 159 my $path_base = $comp->{path_base}; # Base name for file 158 160 next if defined $comp->{quality} and $comp->{quality} > 0; 161 print "Warning: mis-matched comments\n" if defined $comment and $comment ne $comp->{comment}; 162 $comment = $comp->{comment} unless defined $comment; 159 163 160 164 (carp "Bad zpt_obs or exp_time for component" and next) if not defined $comp->{zpt_obs} or not defined $comp->{exp_time}; … … 234 238 unless ($no_update) { 235 239 my $command = "$dsreg --add $stage.$stage_id --copy --abspath --product $product --type $product --list $dsFileName"; 240 $command .= " --ps0 \"$comment\"" if defined $comment; 236 241 237 242 my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
Note:
See TracChangeset
for help on using the changeset viewer.
