diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2005-11-04 11:43:37 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2005-11-04 11:43:37 +0000 |
commit | d6c8ec3396892efdcca89818aebf86b4db7a98b2 (patch) | |
tree | 754250868fbc291ef3da52e0fc20313d4609adc1 /perl-install/install_any.pm | |
parent | a798005111cd26966def46196afea3264e835bd2 (diff) | |
download | drakx-d6c8ec3396892efdcca89818aebf86b4db7a98b2.tar drakx-d6c8ec3396892efdcca89818aebf86b4db7a98b2.tar.gz drakx-d6c8ec3396892efdcca89818aebf86b4db7a98b2.tar.bz2 drakx-d6c8ec3396892efdcca89818aebf86b4db7a98b2.tar.xz drakx-d6c8ec3396892efdcca89818aebf86b4db7a98b2.zip |
(is_network_install) use it whenever possible
Diffstat (limited to 'perl-install/install_any.pm')
-rw-r--r-- | perl-install/install_any.pm | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/perl-install/install_any.pm b/perl-install/install_any.pm index c636f6d09..22ad2e00b 100644 --- a/perl-install/install_any.pm +++ b/perl-install/install_any.pm @@ -290,7 +290,6 @@ sub dont_run_directly_stage2() { readlink("/usr/bin/runinstall2") eq "runinstall2.sh"; } -#- FIXME: use it whenever possible once unfrozen sub is_network_install { my ($o) = @_; member($o->{method}, qw(ftp http nfs)); @@ -1466,7 +1465,7 @@ sub generate_automatic_stage1_params { } @ks = (method => $method, @ks); - if (member($o->{method}, qw(http ftp nfs))) { + if (is_network_install($o)) { if ($ENV{PROXY}) { push @ks, proxy_host => $ENV{PROXY}, proxy_port => $ENV{PROXYPORT}; } @@ -1731,7 +1730,7 @@ sub media_browser { my $hd = $to_text->($_); map { $_ => join('\1', $hd, partition_table::description($_)) } grep { isTrueFS($_) || isOtherAvailableFS($_) } fs::get::hds_fstab($_); } fs::get::hds($all_hds)), - if_(member($::o->{method}, qw(ftp http nfs)) || install_steps::hasNetwork($::o), + if_(is_network_install($::o) || install_steps::hasNetwork($::o), map { $_ => join('\1', N("Network"), translate($_)) } @network_protocols), ); |