X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=inc%2FModule%2FInstall%2FFetch.pm;h=4f77e2e6aa6dd2719c76df0987bdfb35d46a8e20;hb=refs%2Ftags%2Fupstream%2F0.16;hp=f7cd58e9a8c88ab56514436d4ece45f60d9b95db;hpb=8a4c5378ad9614e2d4d066968b85f215fd5671d3;p=libwww-opensearch-perl.git diff --git a/inc/Module/Install/Fetch.pm b/inc/Module/Install/Fetch.pm index f7cd58e..4f77e2e 100644 --- a/inc/Module/Install/Fetch.pm +++ b/inc/Module/Install/Fetch.pm @@ -2,24 +2,24 @@ package Module::Install::Fetch; use strict; -use Module::Install::Base; +use Module::Install::Base (); -use vars qw{$VERSION $ISCORE @ISA}; +use vars qw{$VERSION @ISA $ISCORE}; BEGIN { - $VERSION = '0.71'; + $VERSION = '0.97'; + @ISA = 'Module::Install::Base'; $ISCORE = 1; - @ISA = qw{Module::Install::Base}; } sub get_file { my ($self, %args) = @_; - my ($scheme, $host, $path, $file) = + my ($scheme, $host, $path, $file) = $args{url} =~ m|^(\w+)://([^/]+)(.+)/(.+)| or return; if ( $scheme eq 'http' and ! eval { require LWP::Simple; 1 } ) { $args{url} = $args{ftp_url} or (warn("LWP support unavailable!\n"), return); - ($scheme, $host, $path, $file) = + ($scheme, $host, $path, $file) = $args{url} =~ m|^(\w+)://([^/]+)(.+)/(.+)| or return; }