diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2004-09-13 10:58:13 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2004-09-13 10:58:13 +0000 |
commit | f74615697b0e051ee6cdbd95eae0040f68372919 (patch) | |
tree | 86d7825264dafc392d8bdfed80f87c28b3101c70 /perl-install/install_any.pm | |
parent | 5eb16ca817555c5766181fac7ade5ddd6dcb7c0d (diff) | |
download | drakx-f74615697b0e051ee6cdbd95eae0040f68372919.tar drakx-f74615697b0e051ee6cdbd95eae0040f68372919.tar.gz drakx-f74615697b0e051ee6cdbd95eae0040f68372919.tar.bz2 drakx-f74615697b0e051ee6cdbd95eae0040f68372919.tar.xz drakx-f74615697b0e051ee6cdbd95eae0040f68372919.zip |
redundant code
Diffstat (limited to 'perl-install/install_any.pm')
-rw-r--r-- | perl-install/install_any.pm | 3 |
1 files changed, 1 insertions, 2 deletions
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) { |