diff options
author | Thierry Vignaud <tv@mageia.org> | 2012-05-23 18:27:36 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2012-05-23 18:27:36 +0000 |
commit | 3fbc6f2b6d47f42a8ed41a90767f6161b44c222f (patch) | |
tree | 1a77e70d93c8eb2a4ec062b0bb8e23ab50798685 /perl-install/mirror.pm | |
parent | c87e8657e04e0f4e3d232a3291950b7f08c20cf0 (diff) | |
download | drakx-3fbc6f2b6d47f42a8ed41a90767f6161b44c222f.tar drakx-3fbc6f2b6d47f42a8ed41a90767f6161b44c222f.tar.gz drakx-3fbc6f2b6d47f42a8ed41a90767f6161b44c222f.tar.bz2 drakx-3fbc6f2b6d47f42a8ed41a90767f6161b44c222f.tar.xz drakx-3fbc6f2b6d47f42a8ed41a90767f6161b44c222f.zip |
(mirrors_raw) simplify
Diffstat (limited to 'perl-install/mirror.pm')
-rw-r--r-- | perl-install/mirror.pm | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/perl-install/mirror.pm b/perl-install/mirror.pm index b9ee55ba2..f0a54f4d1 100644 --- a/perl-install/mirror.pm +++ b/perl-install/mirror.pm @@ -87,12 +87,7 @@ sub mirrors_raw { #- FIXME! (blino) we use use https here my $list = "http://mirrors.mageia.org/api/$type.$product_id->{version}.$product_id->{arch}.list?product=$product_id->{product}"; log::explanations("trying mirror list from $list"); - my @lines; - if ($::isInstall) { - @lines = _mirrors_raw_install($list); - } else { - @lines = _mirrors_raw_standalone($list); - } + my @lines = $::isInstall ? _mirrors_raw_install($list) : _mirrors_raw_standalone($list); map { common::parse_LDAP_namespace_structure(chomp_($_)) } @lines; } |