Changeset 25027 for branches/pap/ippScripts/scripts/dist_make_fileset.pl
- Timestamp:
- Aug 7, 2009, 4:08:25 PM (17 years ago)
- Location:
- branches/pap
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
ippScripts/scripts/dist_make_fileset.pl (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/pap
- Property svn:mergeinfo changed
-
branches/pap/ippScripts/scripts/dist_make_fileset.pl
r23912 r25027 91 91 &my_die("dbinfo file for dist run $dbinfo_file not found", $dist_id, $prod_id, $PS_EXIT_UNKNOWN_ERROR); 92 92 } 93 print "dbinfo file $dbinfo_file exists\n"; 93 print "dbinfo file $dbinfo_file exists\n" if $verbose; 94 95 # make sure that the dirinfo file for this run exists 96 my $dirinfo_file = "dirinfo.$stage.$stage_id.mdc"; 97 if (! -e "$dist_dir/$dirinfo_file" ) { 98 &my_die("dirinfo file for dist run $dirinfo_file not found", $dist_id, $prod_id, $PS_EXIT_UNKNOWN_ERROR); 99 } 100 print "dirinfo file $dirinfo_file exists\n" if $verbose; 94 101 95 102 # open the dsreg file list … … 97 104 98 105 # add the dbinfo file to the list 99 print $listFile "$dbinfo_file|||text|\n"; 106 # XXX: change type from text to dbinfo and dirinfo once we define the types 107 print $listFile "$dbinfo_file|||text|dbinfo|\n"; 108 print $listFile "$dirinfo_file|||text|dirinfo|\n"; 100 109 101 110 my $components; … … 125 134 next if $size == 0; 126 135 my $md5sum = $component->{md5sum}; 136 # name of the file 127 137 my $name = $component->{name}; 138 # component id (class_is or skycell_id) 139 my $comp_name = $component->{component}; 128 140 129 141 # XXX: if tarfile is not always the right type we need to add a type to distComponent 130 print $listFile "$name|$size|$md5sum|tgz| \n";142 print $listFile "$name|$size|$md5sum|tgz|$comp_name|\n"; 131 143 } 132 144 … … 201 213 if ($stage eq 'stack') { 202 214 return "stack.$stage_id"; 215 } elsif ($stage eq 'diff') { 216 return "diff.$stage_id"; 203 217 } 204 218 205 219 # 206 # we are a long ways away from the rawExp in the pip line. Rather than do some exotic207 # queries in thedisttool, we look up the exp_name in the database using DBI220 # we are a long ways away from the rawExp in the pipeline. Rather than do some 221 # very long joins in disttool, we look up the exp_name in the database using DBI 208 222 # 209 223 my $dbh = getDBHandle($ipprc, $dbname); … … 224 238 $query = "SELECT exp_name FROM warpRun JOIN fakeRun USING(fake_id) JOIN camRun USING(cam_id)" 225 239 . " JOIN chipRun USING(chip_id) JOIN rawExp USING(exp_id) WHERE warp_id = $stage_id"; 226 } elsif ($stage eq 'diff') {227 $query = "SELECT exp_name FROM diffRun JOIN rawExp USING(exp_id) WHERE diff_id = $stage_id";228 240 } else { 229 241 &my_die("$stage is invalid value for stage\n");
Note:
See TracChangeset
for help on using the changeset viewer.
