diff options
Diffstat (limited to 'lib/Downloads.php')
-rw-r--r-- | lib/Downloads.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/Downloads.php b/lib/Downloads.php index b69bafaea..71821b490 100644 --- a/lib/Downloads.php +++ b/lib/Downloads.php @@ -131,10 +131,12 @@ class Downloads * * @return array */ - public static function get_all_mirrors($prod = true, $documentation = false) + public static function get_all_mirrors($prod = true, $documentation = false, $mirrorlist = false) { if ($documentation) { $cache_file = realpath(__DIR__ . '/cached.list_doc.php'); + } else if ($mirrorlist) { + $cache_file = realpath(__DIR__ . '/cached.list_mirrorlist.php'); } else { $cache_file = realpath(__DIR__ . '/cached.list.php'); } @@ -168,6 +170,8 @@ class Downloads if ($documentation) { $test_file = $item['url'].'/people/marcom/doc/mga5/date.txt'; + } else if ($mirrorlist) { + $test_file = $item['url'].'/distrib/6/x86_64/media/core/updates/repodata/repomd.xml'; } else { $test_file = $item['url'].'/iso/5/torrents/Mageia-5-LiveDVD-KDE4-x86_64-DVD.torrent'; } |