On Thursday, February 14, 2002, at 06:10 AM, Jeremy Higgs wrote:
> On 14/2/02 9:48 PM, "Charlie Allom" <[EMAIL PROTECTED]> wrote:
>> On Thu, Feb 14, 2002 at 09:41:33AM +0100, Joseph Bauer wrote:
>>> why you don't use wget for downloading the files? I didn't see 
>>> anything
>>
>> I'd love an option for fink to use wget anyway, as I understand wget
>> much more easily than curl output. Maybe there is something I'm
>> missing in fink.conf?
>>
> You're not missing anything in fink.conf... I've made a feature request 
> for
> an option to use wget instead of curl (as someone suggested, in the
> meantime, I've moved all instances of curl to 'curl.no', and Fink uses 
> wget
> instead).


Here's a diff against the current cvs version of fink. It lets you put 
an item in your fink.conf to specify which program you wanted to use. 
The fink.conf entry you're looking for would be:

DownloadMethod: wget



Here's the patch:

--- NetAccess.pm        Thu Feb 14 10:28:36 2002
+++ NetAccess.pm.mine   Tue Feb 12 18:43:57 2002
@@ -191,8 +191,9 @@
      }
    }

-  # check if we have wget
-  if (!$cmd and (-x "$basepath/bin/wget" or -x "/usr/bin/wget")) {
+  # if we would prefer wget (or didn't have curl available), check for 
wget
+  if ((!$cmd or $config->param_default("DownloadMethod") eq "wget") and
+      (-x "$basepath/bin/wget" or -x "/usr/bin/wget")) {
      $cmd = "wget";
      if (Fink::Config::is_verbose()) {
        $cmd .= " --verbose";


_______________________________________________
Fink-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to