summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perl-install/mirror.pm7
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;
}