Changeset 13321


Ignore:
Timestamp:
2006-11-24T11:49:55+13:00 (17 years ago)
Author:
kjdon
Message:

-P with an absolute path option to wget seems to screw up image links, so instead we change directory to this dir, and run wget without -P

File:
1 edited

Legend:

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

    r12585 r13321  
    105105     
    106106    # Setup the command for using wget
    107     my $cmdWget = "-N -k -x -t 2 -P \"".$hashGeneralOptions->{"cache_dir"}."\" $strWgetOptions $strOptions ".$self->{'url'};
     107    #my $cmdWget = "-N -k -x -t 2 -P \"".$hashGeneralOptions->{"cache_dir"}."\" $strWgetOptions $strOptions ".$self->{'url'};
     108    my $cmdWget = "-N -k -x -t 2  $strWgetOptions $strOptions ".$self->{'url'};
    108109   
    109110    # Download the web pages
     
    111112    print STDERR "<<Undefined Maximum>>\n";
    112113
    113     my $strResponse = $self->useWget($cmdWget,1);
     114    my $strResponse = $self->useWget($cmdWget,1,$hashGeneralOptions->{"cache_dir"} );
    114115 
    115116    # if ($strResponse ne ""){print "$strResponse\n";}
Note: See TracChangeset for help on using the changeset viewer.