Ignore:
Timestamp:
1999-12-13T16:58:37+13:00 (24 years ago)
Author:
davidb
Message:

General improvements

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/cgi-bin/webpage_buildcol.pl

    r724 r841  
    122122    {
    123123    my $mess = "Error: Unable to open log file '$log_filename'";
     124    print LOGOUT "$mess\n";
    124125    communicate_single_line($full_tmpname,$mess);
    125126    return "failure";
     
    169170        {
    170171        my $mess = "Error: Unable to open pipe to command '$download_cmd'";
     172        print LOGOUT "$mess\n";
    171173        communicate_single_line($full_tmpname,$mess);
    172174        close(LOGOUT);
     
    179181        if ($line =~ m/^Error:/)
    180182        {
     183            print LOGOUT "$line";
    181184            communicate_single_line($full_tmpname,"$line");
    182185            close(DOWNLOADOUT);
     
    197200    my $sym_dirname = &util::filename_cat($full_importname,$tail_dir);
    198201   
    199     &util::rm($sym_dirname) if (-e $sym_dirname);
     202    &util::rm_r($sym_dirname) if (-e $sym_dirname);
    200203
    201204    if (&util::soft_link($input_dir,$sym_dirname))
     
    208211        my $mess = "Error: unable to make symbolic link to source:";
    209212        $mess .= " $input_dir";
     213        print LOGOUT "$mess\n";
    210214        communicate_single_line($full_tmpname,$mess);
    211215        close(LOGOUT);
     
    222226    {
    223227        my $mess = "Error: Unable to open pipe to command '$import_cmd'";
     228        print LOGOUT "$mess\n";
    224229        communicate_single_line($full_tmpname,$mess);
    225230        close(LOGOUT);
     
    232237        if ($line =~ m/^Error:/)
    233238        {
     239        print LOGOUT "$line";
    234240        communicate_single_line($full_tmpname,"$line");
    235241        close(IMPORTOUT);
     
    245251    if ($do_build eq "true")
    246252    {
     253    my $full_archivename = &util::filename_cat($full_dirname,"archives");
     254
    247255    # Build operation
    248256    my $build_cmd = "";
    249     if ($do_import eq "true")
     257    if (($do_import eq "true")
     258        || (($do_import eq "false") && (-e $full_archivename)))
    250259    {
    251260        $build_cmd = "buildcol.pl $dirname";
     
    253262    else
    254263    {
    255         my $full_archivename = &util::filename_cat($full_dirname,"archives");
    256264
    257265        $build_cmd = "buildcol.pl";
     
    264272    {
    265273        my $mess = "Error: Unable to open pipe to command '$build_cmd'";
     274        print LOGOUT "$mess\n";
    266275        communicate_single_line($full_tmpname,$mess);
    267276        close(LOGOUT);
     
    274283        if ($line =~ m/^Error:/)
    275284        {
     285        print LOGOUT "$line";
    276286        communicate_single_line($full_tmpname,"$line");
    277287        close(BUILDOUT);
Note: See TracChangeset for help on using the changeset viewer.