From 3fbc6f2b6d47f42a8ed41a90767f6161b44c222f Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Wed, 23 May 2012 18:27:36 +0000 Subject: (mirrors_raw) simplify --- perl-install/mirror.pm | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'perl-install') 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; } -- cgit v1.2.1