Changeset 13902


Ignore:
Timestamp:
2007-02-13T10:31:08+13:00 (17 years ago)
Author:
shaoqun
Message:

fixed the bug that caused the download web files being stored in the wrong place on linux

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/perllib/downloaders/WebDownload.pm

    r13331 r13902  
    105105     
    106106    # Setup the command for using wget
    107     my $cache_dir = "";
    108     if ($ENV{'GSDLOS'} eq "windows") {
     107     my $cache_dir = "";
     108    if ($ENV{'GSDLOS'} eq "windows") {   
    109109    $cache_dir = "-P \"".$hashGeneralOptions->{"cache_dir"}."\" ";
    110110    }
     111    else{
     112        $cache_dir = "-P ".$hashGeneralOptions->{"cache_dir"};
     113    }
     114
    111115    #my $cmdWget = "-N -k -x -t 2 -P \"".$hashGeneralOptions->{"cache_dir"}."\" $strWgetOptions $strOptions ".$self->{'url'};
    112     my $cmdWget = "-N -k -x -t 2  $strWgetOptions $strOptions $cache_dir " .$self->{'url'};
     116    my $cmdWget = "-N -k -x -t 2  $strWgetOptions $strOptions $cache_dir " .$self->{'url'};   
    113117   
    114118    # Download the web pages
     
    124128   
    125129    # if ($strResponse ne ""){print "$strResponse\n";}
    126    
    127     print STDERR "Finish download from $self->{'url'}\n";
     130     print STDERR "Finish download from $self->{'url'}\n";
    128131
    129132    print STDERR "<<Finished>>\n";
Note: See TracChangeset for help on using the changeset viewer.