IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 29, 2009, 4:37:14 PM (17 years ago)
Author:
bills
Message:

we have a fileset type now IPP-DIST

File:
1 edited

Legend:

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

    r25572 r25672  
    4040# Parse the command-line arguments
    4141my ($dist_id, $dist_dir, $target_id, $stage, $stage_id, $dest_id, $product_name, $ds_dbhost, $ds_dbname);
     42my ($label, $filter);
    4243my ($dbname, $save_temps, $verbose, $no_update, $logfile);
    4344
     
    5051           'dest_id=s'      => \$dest_id,    # id for the product
    5152           'product_name=s' => \$product_name,  # location of the data store directory for this product
     53           'label=s'       => \$label,
     54           'filter=s'      => \$filter,
    5255           'ds_dbhost=s'    => \$ds_dbhost,  # database host for the datastore database
    5356           'ds_dbname=s'    => \$ds_dbname,  # database name for the datastore database
     
    6063
    6164pod2usage( -msg => "Unknown option: @ARGV", -exitval => 2 ) if @ARGV;
    62 pod2usage( -msg => "Required options: --dist_id --dist_dir --target_id --stage --stage_id --dest_id --ds_dbhost --ds_dbname",
     65pod2usage( -msg => "Required options: --dist_id --dist_dir --target_id --stage --stage_id --label --filter --dest_id --ds_dbhost --ds_dbname",
    6366           -exitval => 3) unless
    6467    defined $dist_id and
     
    6770    defined $stage and
    6871    defined $stage_id and
     72    defined $label and
     73    defined $filter and
    6974    defined $dest_id and
    7075    defined $product_name and
     
    147152
    148153{
    149     # XXX: need to chose an appropriate file set type
    150     my $command = "$dsreg --add $fileset_name --product $product_name --type notset --list $listFileName";
     154    my $command = "$dsreg --add $fileset_name --product $product_name --type IPP-DIST --list $listFileName";
    151155
    152156    # the data store will refer to the distribution bundle via symlinks back to distRun.outdir
     
    157161
    158162    $command .= " --ps0 $target_id --ps1 $stage --ps2 $stage_id --ps3 $prod_col_3";
    159 
    160     $command .= " --dbname $ds_dbname";    # XXX: notyet --dbhost $ds_dbhost
     163    $command .= " --ps4 $label --ps5 $filter";
     164
     165    $command .= " --dbname $ds_dbname --dbhost $ds_dbhost";
    161166
    162167    my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
Note: See TracChangeset for help on using the changeset viewer.