IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 28576 for trunk/ippScripts


Ignore:
Timestamp:
Jul 1, 2010, 1:55:23 PM (16 years ago)
Author:
Paul Price
Message:

Fix file type.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippScripts/scripts/publish_file.pl

    r28542 r28576  
    8383
    8484my ($dsFile, $dsFileName) = tempfile("/tmp/publish.$pub_id.ds.XXXX", UNLINK => !$save_temps );
     85my $dsType = $mops ? "IPP-MOPS" : $product; # Type for DataStore
    8586
    8687my $comment;                    # Comment for exposure
     
    230231                print $mopsNegativeFile "$filename\n";
    231232            } else {
    232                 print $dsFile "$filename|||$product|${skycell_id}.neg|\n";
     233                print $dsFile "$filename|||$dsType|${skycell_id}.neg|\n";
    233234            }
    234235        }
     
    241242        if (scalar keys %positive > 0) {
    242243            my $output = mops_combine(\%positive, "$outroot.pos.mops", $mopsPositiveFileName);
    243             print $dsFile "$output|||$product|positive|\n";
     244            print $dsFile "$output|||$dsType|positive|\n";
    244245        }
    245246        if (scalar keys %negative > 0) {
    246247            my $output = mops_combine(\%negative, "$outroot.neg.mops", $mopsNegativeFileName);
    247             print $dsFile "$output|||$product|negative|\n";
     248            print $dsFile "$output|||$dsType|negative|\n";
    248249        }
    249250    }
     
    252253close $dsFile;
    253254
    254 my $fileset_type = $mops ? "IPP-MOPS" : $product; # Type of fileset for DataStore
    255 
    256255unless ($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";
    258257    $command .= " --ps0 \"$comment\"" if defined $comment;
    259258
Note: See TracChangeset for help on using the changeset viewer.