summaryrefslogtreecommitdiffstats
path: root/perl-install/install_any.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/install_any.pm')
-rw-r--r--perl-install/install_any.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/install_any.pm b/perl-install/install_any.pm
index b6b522bc6..3b3538fc0 100644
--- a/perl-install/install_any.pm
+++ b/perl-install/install_any.pm
@@ -450,8 +450,8 @@ sub selectSupplMedia {
log::l("read suppl hdlist (via $suppl_method)");
$supplmedium->{prefix} = $url; #- for install_urpmi
if ($suppl_method eq 'ftp') {
- $url =~ m!^ftp://(?:(.*?)(?::(.*?))?@)?([^/]+)/(.*)!;
- $supplmedium->{ftp_prefix} = [ $3, $4, $1, $2 ]; #- for getFile
+ $url =~ m!^ftp://(?:(.*?)(?::(.*?))?@)?([^/]+)/(.*)!
+ and $supplmedium->{ftp_prefix} = [ $3, $4, $1, $2 ]; #- for getFile
}
$supplmedium->{selected} = 1;
$supplmedium->{method} = $suppl_method;