From f04e7c6d65d83aef9874dd7c493c62cc21aa58b8 Mon Sep 17 00:00:00 2001 From: filip Date: Sun, 3 May 2020 19:19:58 +0200 Subject: switch mirror api to mga7 to refresh proper mirrors --- lib/Downloads.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Downloads.php b/lib/Downloads.php index 05ba8b30b..fc8305c06 100644 --- a/lib/Downloads.php +++ b/lib/Downloads.php @@ -149,7 +149,7 @@ class Downloads require $cache_file; } else { - $data = file('http://mirrors.mageia.org/api/mageia.6.i586.list'); + $data = file('http://mirrors.mageia.org/api/mageia.7.i586.list'); $mirrors = array(); $num_up = 0; $num_dn = 0; @@ -169,7 +169,7 @@ class Downloads 'country' => isset($m['country']) ? $m['country'] : '?', 'city' => isset($m['city']) ? utf8_encode($m['city']) : '-', // BEWARE of the path substitution here. Must match. - 'url' => str_replace('/distrib/6/i586', '', $m['url']) + 'url' => str_replace('/distrib/7/i586', '', $m['url']) ); if ($documentation) { -- cgit v1.2.1