summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-09-13 10:58:13 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-09-13 10:58:13 +0000
commitf74615697b0e051ee6cdbd95eae0040f68372919 (patch)
tree86d7825264dafc392d8bdfed80f87c28b3101c70 /perl-install
parent5eb16ca817555c5766181fac7ade5ddd6dcb7c0d (diff)
downloaddrakx-f74615697b0e051ee6cdbd95eae0040f68372919.tar
drakx-f74615697b0e051ee6cdbd95eae0040f68372919.tar.gz
drakx-f74615697b0e051ee6cdbd95eae0040f68372919.tar.bz2
drakx-f74615697b0e051ee6cdbd95eae0040f68372919.tar.xz
drakx-f74615697b0e051ee6cdbd95eae0040f68372919.zip
redundant code
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/install_any.pm3
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) {