Changeset 841 for trunk/gsdl/cgi-bin/webpage_buildcol.pl
- Timestamp:
- 1999-12-13T16:58:37+13:00 (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/cgi-bin/webpage_buildcol.pl
r724 r841 122 122 { 123 123 my $mess = "Error: Unable to open log file '$log_filename'"; 124 print LOGOUT "$mess\n"; 124 125 communicate_single_line($full_tmpname,$mess); 125 126 return "failure"; … … 169 170 { 170 171 my $mess = "Error: Unable to open pipe to command '$download_cmd'"; 172 print LOGOUT "$mess\n"; 171 173 communicate_single_line($full_tmpname,$mess); 172 174 close(LOGOUT); … … 179 181 if ($line =~ m/^Error:/) 180 182 { 183 print LOGOUT "$line"; 181 184 communicate_single_line($full_tmpname,"$line"); 182 185 close(DOWNLOADOUT); … … 197 200 my $sym_dirname = &util::filename_cat($full_importname,$tail_dir); 198 201 199 &util::rm ($sym_dirname) if (-e $sym_dirname);202 &util::rm_r($sym_dirname) if (-e $sym_dirname); 200 203 201 204 if (&util::soft_link($input_dir,$sym_dirname)) … … 208 211 my $mess = "Error: unable to make symbolic link to source:"; 209 212 $mess .= " $input_dir"; 213 print LOGOUT "$mess\n"; 210 214 communicate_single_line($full_tmpname,$mess); 211 215 close(LOGOUT); … … 222 226 { 223 227 my $mess = "Error: Unable to open pipe to command '$import_cmd'"; 228 print LOGOUT "$mess\n"; 224 229 communicate_single_line($full_tmpname,$mess); 225 230 close(LOGOUT); … … 232 237 if ($line =~ m/^Error:/) 233 238 { 239 print LOGOUT "$line"; 234 240 communicate_single_line($full_tmpname,"$line"); 235 241 close(IMPORTOUT); … … 245 251 if ($do_build eq "true") 246 252 { 253 my $full_archivename = &util::filename_cat($full_dirname,"archives"); 254 247 255 # Build operation 248 256 my $build_cmd = ""; 249 if ($do_import eq "true") 257 if (($do_import eq "true") 258 || (($do_import eq "false") && (-e $full_archivename))) 250 259 { 251 260 $build_cmd = "buildcol.pl $dirname"; … … 253 262 else 254 263 { 255 my $full_archivename = &util::filename_cat($full_dirname,"archives");256 264 257 265 $build_cmd = "buildcol.pl"; … … 264 272 { 265 273 my $mess = "Error: Unable to open pipe to command '$build_cmd'"; 274 print LOGOUT "$mess\n"; 266 275 communicate_single_line($full_tmpname,$mess); 267 276 close(LOGOUT); … … 274 283 if ($line =~ m/^Error:/) 275 284 { 285 print LOGOUT "$line"; 276 286 communicate_single_line($full_tmpname,"$line"); 277 287 close(BUILDOUT);
Note:
See TracChangeset
for help on using the changeset viewer.