Changeset 17530 for gsdl/trunk/perllib
- Timestamp:
- 2008-10-14T17:25:27+13:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gsdl/trunk/perllib/downloaders/WebDownload.pm
r17247 r17530 105 105 106 106 # Setup the command for using wget 107 my $cache_dir = ""; 108 if ($ENV{'GSDLOS'} eq "windows") { 109 $cache_dir = "-P \"".$hashGeneralOptions->{"cache_dir"}."\" "; 110 } 111 else{ 112 $cache_dir = "-P ".$hashGeneralOptions->{"cache_dir"}; 113 } 114 107 my $cache_dir = ""; 108 if($hashGeneralOptions->{'cache_dir'}) { # don't provide the prefix-dir flag to wget unless the cache_dir is specified 109 if ($ENV{'GSDLOS'} eq "windows") { 110 $cache_dir = "-P \"".$hashGeneralOptions->{'cache_dir'}."\" "; 111 } 112 else { 113 $cache_dir = "-P ".$hashGeneralOptions->{'cache_dir'}; 114 } 115 } 115 116 #my $cmdWget = "-N -k -x -t 2 -P \"".$hashGeneralOptions->{"cache_dir"}."\" $strWgetOptions $strOptions ".$self->{'url'}; 116 117 my $cmdWget = "-N -k -x -t 2 $strWgetOptions $strOptions $cache_dir " .$self->{'url'}; 117 118 118 119 # Download the web pages 119 # print "St rat download from $self->{'url'}...\n";120 # print "Start download from $self->{'url'}...\n"; 120 121 print STDERR "<<Undefined Maximum>>\n"; 121 122
Note:
See TracChangeset
for help on using the changeset viewer.