IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 3, 2009, 1:02:08 PM (17 years ago)
Author:
bills
Message:

Spread building of distribution bundles over a number of hosts (currently 5)

File:
1 edited

Legend:

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

    r25850 r26015  
    5353           'label=s'        => \$label,
    5454           'dist_group=s'   => \$dist_group,
    55            'filter=s'      => \$filter,
     55           'filter=s'       => \$filter,
    5656           'ds_dbhost=s'    => \$ds_dbhost,  # database host for the datastore database
    5757           'ds_dbname=s'    => \$ds_dbname,  # database name for the datastore database
     
    9494
    9595# make sure that the database info file for this run exists
    96 my $dbinfo_file = "dbinfo.$stage.$stage_id.mdc";
    97 if (! -e "$dist_dir/$dbinfo_file" ) {
     96my $dbinfo_file = "$dist_dir/dbinfo.$stage.$stage_id.mdc";
     97if (! -e "$dbinfo_file" ) {
    9898    &my_die("dbinfo file for dist run $dbinfo_file not found", $dist_id, $dest_id, $PS_EXIT_UNKNOWN_ERROR);
    9999}
     
    101101
    102102# make sure that the dirinfo file for this run exists
    103 my $dirinfo_file = "dirinfo.$stage.$stage_id.mdc";
    104 if (! -e "$dist_dir/$dirinfo_file" ) {
     103my $dirinfo_file = "$dist_dir/dirinfo.$stage.$stage_id.mdc";
     104if (! -e "$dirinfo_file" ) {
    105105    &my_die("dirinfo file for dist run $dirinfo_file not found", $dist_id, $dest_id, $PS_EXIT_UNKNOWN_ERROR);
    106106}
     
    142142    my $md5sum = $component->{md5sum};
    143143    # name of the file
    144     my $name = $component->{name};
     144    my $file_name = $component->{name};
    145145    # component id (class_is or skycell_id)
     146    my $comp_dir = $component->{outdir};
    146147    my $comp_name = $component->{component};
    147148
    148149    # XXX: if tarfile is not always the right type we need to add a type to distComponent
    149     print $listFile "$name|$size|$md5sum|tgz|$comp_name|\n";
     150    print $listFile "$comp_dir/$file_name|$size|$md5sum|tgz|$comp_name|\n";
    150151}
    151152
     
    156157
    157158    # the data store will refer to the distribution bundle via symlinks back to distRun.outdir
    158     $command .= " --datapath $dist_dir --link";
     159#    $command .= " --datapath $dist_dir --link";
     160    $command .= " --abspath --link";
    159161
    160162    # set the product specific columns in product list
Note: See TracChangeset for help on using the changeset viewer.