From 92bea30b70696f9e1f6e68a037acf70ac48a5d99 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Wed, 8 Apr 2009 11:54:22 +0000 Subject: (get_file_and_size) just use curl for ftp retrieval, like for http --- perl-install/install/media.pm | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'perl-install/install') diff --git a/perl-install/install/media.pm b/perl-install/install/media.pm index 082bb4457..0edfb8ab0 100644 --- a/perl-install/install/media.pm +++ b/perl-install/install/media.pm @@ -345,10 +345,7 @@ sub get_file_and_size { if ($f =~ m|^http://|) { require install::http; install::http::get_file_and_size($f); - } elsif ($phys_m->{method} eq "ftp") { - require install::ftp; - install::ftp::get_file_and_size($f, $phys_m->{url}); - } elsif ($phys_m->{method} eq "http") { + } elsif (member($phys_m->{method}, qw(ftp http))) { require install::http; install::http::get_file_and_size_($f, $phys_m->{url}); } elsif ($f =~ m!^/!) { -- cgit v1.2.1