Changeset 28576 for trunk/ippScripts
- Timestamp:
- Jul 1, 2010, 1:55:23 PM (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
r28542 r28576 83 83 84 84 my ($dsFile, $dsFileName) = tempfile("/tmp/publish.$pub_id.ds.XXXX", UNLINK => !$save_temps ); 85 my $dsType = $mops ? "IPP-MOPS" : $product; # Type for DataStore 85 86 86 87 my $comment; # Comment for exposure … … 230 231 print $mopsNegativeFile "$filename\n"; 231 232 } else { 232 print $dsFile "$filename|||$ product|${skycell_id}.neg|\n";233 print $dsFile "$filename|||$dsType|${skycell_id}.neg|\n"; 233 234 } 234 235 } … … 241 242 if (scalar keys %positive > 0) { 242 243 my $output = mops_combine(\%positive, "$outroot.pos.mops", $mopsPositiveFileName); 243 print $dsFile "$output|||$ product|positive|\n";244 print $dsFile "$output|||$dsType|positive|\n"; 244 245 } 245 246 if (scalar keys %negative > 0) { 246 247 my $output = mops_combine(\%negative, "$outroot.neg.mops", $mopsNegativeFileName); 247 print $dsFile "$output|||$ product|negative|\n";248 print $dsFile "$output|||$dsType|negative|\n"; 248 249 } 249 250 } … … 252 253 close $dsFile; 253 254 254 my $fileset_type = $mops ? "IPP-MOPS" : $product; # Type of fileset for DataStore255 256 255 unless ($no_update) { 257 my $command = "$dsreg --add pub.$pub_id.$stage.$stage_id --copy --abspath --product $product --type $ fileset_type --list $dsFileName";256 my $command = "$dsreg --add pub.$pub_id.$stage.$stage_id --copy --abspath --product $product --type $dsType --list $dsFileName"; 258 257 $command .= " --ps0 \"$comment\"" if defined $comment; 259 258
Note:
See TracChangeset
for help on using the changeset viewer.
