From f74615697b0e051ee6cdbd95eae0040f68372919 Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Mon, 13 Sep 2004 10:58:13 +0000 Subject: redundant code --- perl-install/install_any.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'perl-install') diff --git a/perl-install/install_any.pm b/perl-install/install_any.pm index f76b8c235..dbb0a7a44 100644 --- a/perl-install/install_any.pm +++ b/perl-install/install_any.pm @@ -526,8 +526,7 @@ sub selectSupplMedia { if ($suppl_method eq 'http') { http::getFile("$url/media_info/hdlist.cz"); } elsif ($suppl_method eq 'ftp') { - my ($login, $pass, $host, $prefix) = $url =~ m!^ftp://(?:(.*?)(?::(.*?))?@)?([^/]+)/(.*)!; - ftp::getFile("media_info/hdlist.cz", $host, $prefix, $login, $pass); + getFile("media_info/hdlist.cz"); } else { undef } }; if (!defined $f) { -- cgit v1.2.1