summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/ftp.pm13
1 files changed, 2 insertions, 11 deletions
diff --git a/perl-install/ftp.pm b/perl-install/ftp.pm
index 1c560fff7..4014eda10 100644
--- a/perl-install/ftp.pm
+++ b/perl-install/ftp.pm
@@ -11,17 +11,8 @@ my %hosts;
1;
sub fromEnv() {
- # using URLPREFIX to find out information if kickstart
- ($ENV{LOGIN}, $ENV{PASSWORD}, $ENV{HOST}, $ENV{PREFIX}) =
- $ENV{URLPREFIX} =~ m|
- ://
- (?: ([^:]*) # login
- (?: :([^@]*))? # password
- @)?
- ([^/]*) # host
- /?(.*) # prefix
- |x unless $ENV{HOST};
-
+ #- now URLPREFIX is generated from what is given by mdk-stage1 which is only this 4 variables.
+ $ENV{URLPREFIX} = "ftp://$ENV{LOGIN}" . ($ENV{PASSWORD} && ":$ENV{PASSWORD}") . '@' . "$ENV{HOST}/$ENV{PREFIX}";
@ENV{qw(HOST PREFIX LOGIN PASSWORD)};
}