curl won't follow redirects unless specificly told to do so with the -L
flag.  CPAN.pm currently doesn't give it this flag so it can't load from
things like http://search.cpan.org/CPAN/

Patch attached.

-- 
Michael G Schwern     [EMAIL PROTECTED]     http://www.pobox.com/~schwern
ROCKS FALL! EVERYONE DIES!
        http://www.somethingpositive.net/sp05032002.shtml
--- lib/CPAN.pm 2005/08/21 07:12:45     1.1
+++ lib/CPAN.pm 2005/08/21 07:13:37
@@ -2653,7 +2653,9 @@
            $src_switch = " -c";
           } elsif ($f eq "wget"){
             $src_switch = " -O -";
-         }
+          } elsif ($f eq 'curl'){
+            $src_switch = ' -L';
+          }
 
          my($chdir) = "";
          my($stdout_redir) = " > $asl_ungz";

Reply via email to