From 5b5c4e0b19cbb928af8b3432e6888052536edaa1 Mon Sep 17 00:00:00 2001 From: Manuel Hiebel Date: Thu, 25 Feb 2021 20:38:37 +0100 Subject: Update mirrors cache --- lib/Downloads.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/Downloads.php') diff --git a/lib/Downloads.php b/lib/Downloads.php index dd68c2a66..9fea1cea0 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.7.i586.list'); + $data = file('http://mirrors.mageia.org/api/mageia.8.i586.list'); $mirrors = array(); $num_up = 0; $num_dn = 0; @@ -186,7 +186,7 @@ class Downloads 'country' => isset($m['country']) ? $m['country'] : '?', 'city' => isset($m['city']) ? $m['city'] : '-', // BEWARE of the path substitution here. Must match. - 'url' => str_replace('/distrib/7/i586', '', $m['url']) + 'url' => str_replace('/distrib/8/i586', '', $m['url']) ); if ($refresh_country_and_city_arrays == true) { // prepare details for i18n @@ -217,9 +217,9 @@ class Downloads if ($documentation) { $test_file = $item['url'].'/doc/mga7/date.txt'; } else if ($mirrorlist) { - $test_file = $item['url'].'/distrib/7/x86_64/media/core/updates/repodata/repomd.xml'; + $test_file = $item['url'].'/distrib/8/x86_64/media/core/updates/repodata/repomd.xml'; } else { - $test_file = $item['url'].'/iso/cauldron/torrents/Mageia-8-rc-Live-Xfce-i586.torrent'; + $test_file = $item['url'].'/iso/8/torrents/Mageia-8-Live-Xfce-i586.torrent'; } if (false === @file_get_contents($test_file)) { $num_dn++; -- cgit v1.2.1