Changeset 13012


Ignore:
Timestamp:
2006-10-05T16:51:22+13:00 (18 years ago)
Author:
mdewsnip
Message:

Changed to find wget in GSDLHOME/bin/GSDLOS.

File:
1 edited

Legend:

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

    r12949 r13012  
    128128    my ($self, $cmdWget,$blnShow) = @_;
    129129
    130     my ($os,$strReadIn,$strLine,$command);
     130    my ($strReadIn,$strLine,$command);
    131131    $strReadIn = "" unless defined $strReadIn;
    132    
    133     $os = $ENV{'GSDLOS'};
    134  
    135  
    136     if ($os =~ /windows/i){
    137     $command = "\"$ENV{'GSDLHOME'}\\bin\\windows\\wget\" $cmdWget |";
    138     }
    139     else{
    140         $command = "$ENV{'GSDLHOME'}/packages/wget/wget-1.9/src/wget $cmdWget |"; 
    141     }
    142132
    143    
     133    my $wget_file_path = &util::filename_cat($ENV{'GSDLHOME'}, "bin", $ENV{'GSDLOS'}, "wget");
     134    $command = "\"$wget_file_path\" $cmdWget |";
    144135
    145    open(*WIN,$command) || die "wget request failed: $!\n";
    146 
    147    
     136    open(*WIN,$command) || die "wget request failed: $!\n";
    148137
    149138    while (defined($strLine=<WIN>))
    150139    {
    151 
    152 
    153140    if($blnShow)
    154141    {
Note: See TracChangeset for help on using the changeset viewer.