From 89ec7a1ae086d06c2e2db02bde14567b613f5a7c Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Tue, 26 Oct 2004 12:55:17 +0000 Subject: help perl_checker --- perl-install/install_any.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'perl-install/install_any.pm') diff --git a/perl-install/install_any.pm b/perl-install/install_any.pm index 2ac679a16..99a64701b 100644 --- a/perl-install/install_any.pm +++ b/perl-install/install_any.pm @@ -501,7 +501,7 @@ sub selectSupplMedia { local $global_ftp_prefix; if ($suppl_method eq 'ftp') { #- mirrors are ftp only (currently) $url = $o->askSupplMirror(N("URL of the mirror?")) or return 'error'; - $url =~ m!^ftp://(?:(.*?)(?::(.*?))?@)?([^/]+)/(.*)! + $url =~ m!^ftp://(?:(.*?)(?::(.*?))?\@)?([^/]+)/(.*)! and $global_ftp_prefix = [ $3, $4, $1, $2 ]; #- for getFile } else { $url = $o->ask_from_entry('', N("URL of the mirror?")) or return 'error'; @@ -571,7 +571,7 @@ sub setup_suppl_medium { my ($supplmedium, $url, $suppl_method) = @_; $supplmedium->{prefix} = $url; #- for install_urpmi if ($suppl_method eq 'ftp') { - $url =~ m!^ftp://(?:(.*?)(?::(.*?))?@)?([^/]+)/(.*)! + $url =~ m!^ftp://(?:(.*?)(?::(.*?))?\@)?([^/]+)/(.*)! and $supplmedium->{ftp_prefix} = [ $3, $4, $1, $2 ]; #- for getFile } $supplmedium->{selected} = 1; -- cgit v1.2.1