From a337d4be05ae8b72576ac2a0de24b4f5bfe7683f Mon Sep 17 00:00:00 2001 From: filip Date: Fri, 19 Jun 2015 19:22:32 +0200 Subject: mirror list preparation --- lib/Downloads.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/Downloads.php') diff --git a/lib/Downloads.php b/lib/Downloads.php index 247cb5f50..472c2e847 100644 --- a/lib/Downloads.php +++ b/lib/Downloads.php @@ -108,7 +108,7 @@ class Downloads require $cache_file; } else { - $data = file('http://mirrors.mageia.org/api/mageia.4.i586.list'); + $data = file('http://mirrors.mageia.org/api/mageia.5.i586.list'); $mirrors = array(); foreach ($data as $line) { $line = explode(',', trim($line)); @@ -126,13 +126,13 @@ class Downloads 'continent' => isset($m['continent']) ? $m['continent'] : '?', 'zone' => $m['zone'], // BEWARE of the path substitution here. Must match. - 'url' => str_replace('/distrib/4/i586', '', $m['url']) + 'url' => str_replace('/distrib/5/i586', '', $m['url']) ); if ($documentation) { $test_file = $item['url'].'/people/marcom/doc/mga4/date.txt'; } else { - $test_file = $item['url'].'/iso/4.1/torrents/Mageia-4.1-LiveDVD-KDE4-x86_64-DVD.torrent'; + $test_file = $item['url'].'/iso/5/torrents/Mageia-5-LiveDVD-KDE4-x86_64-DVD.torrent'; } if (false === file_get_contents($test_file)) { echo "down $test_file \n"; -- cgit v1.2.1