diff options
author | filip <filip.komar@gmail.com> | 2016-06-01 16:41:19 +0200 |
---|---|---|
committer | filip <filip.komar@gmail.com> | 2016-06-01 16:41:19 +0200 |
commit | 501bc64d8b0754c13da1145bc3ac267784a561ce (patch) | |
tree | 4429ef558b8bf41dc08098b33b2d9bb17b307a16 | |
parent | 38f6cf7ecc3b712069889b0efaea799b2806506f (diff) | |
download | www-501bc64d8b0754c13da1145bc3ac267784a561ce.tar www-501bc64d8b0754c13da1145bc3ac267784a561ce.tar.gz www-501bc64d8b0754c13da1145bc3ac267784a561ce.tar.bz2 www-501bc64d8b0754c13da1145bc3ac267784a561ce.tar.xz www-501bc64d8b0754c13da1145bc3ac267784a561ce.zip |
adding caching list for mirrorlist
+ update other two caching lists (ISO and doc)
-rw-r--r-- | lib/Downloads.php | 6 | ||||
-rw-r--r-- | lib/cached.list.php | 152 | ||||
-rw-r--r-- | lib/cached.list_doc.php | 140 | ||||
-rw-r--r-- | lib/cached.list_mirrorlist.php | 664 | ||||
-rw-r--r-- | tools/update-mirrors-list.php | 4 |
5 files changed, 854 insertions, 112 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'; } diff --git a/lib/cached.list.php b/lib/cached.list.php index 63287c759..2714bc5a9 100644 --- a/lib/cached.list.php +++ b/lib/cached.list.php @@ -23,114 +23,135 @@ 'zone' => 'CN', 'country' => 'CN', 'city' => 'Beijing', - 'url' => 'http://mirrors.tuna.tsinghua.edu.cn/mageia', + 'url' => 'ftp://mirrors.yun-idc.com/mageia', ), 1 => array ( 'zone' => 'CN', 'country' => 'CN', 'city' => 'Beijing', - 'url' => 'http://mirrors.yun-idc.com/mageia', + 'url' => 'http://mirrors.tuna.tsinghua.edu.cn/mageia', ), 2 => array ( 'zone' => 'CN', 'country' => 'CN', 'city' => 'Beijing', - 'url' => 'https://mirrors.tuna.tsinghua.edu.cn/mageia', + 'url' => 'http://mirrors.yun-idc.com/mageia', ), 3 => array ( 'zone' => 'CN', 'country' => 'CN', + 'city' => 'Beijing', + 'url' => 'https://mirrors.tuna.tsinghua.edu.cn/mageia', + ), + 4 => + array ( + 'zone' => 'CN', + 'country' => 'CN', 'city' => 'Hefei', 'url' => 'ftp://mirrors.ustc.edu.cn/mageia', ), - 4 => + 5 => array ( 'zone' => 'CN', 'country' => 'CN', 'city' => 'Hefei', 'url' => 'http://mirrors.ustc.edu.cn/mageia', ), - 5 => + 6 => array ( 'zone' => 'CN', 'country' => 'CN', 'city' => 'Hefei', 'url' => 'https://mirrors.ustc.edu.cn/mageia', ), - 6 => + 7 => + array ( + 'zone' => 'CN', + 'country' => 'CN', + 'city' => 'Shanghai', + 'url' => 'http://ftp.sjtu.edu.cn/mageia', + ), + 8 => + array ( + 'zone' => 'CN', + 'country' => 'CN', + 'city' => 'Shanghai', + 'url' => 'https://ftp.sjtu.edu.cn/mageia', + ), + 9 => array ( 'zone' => 'JP', 'country' => 'JP', 'city' => 'Tsukuba', 'url' => 'http://ftp.tsukuba.wide.ad.jp/Linux/mageia', ), - 7 => + 10 => array ( 'zone' => 'PH', 'country' => 'PH', 'city' => 'Cebu', 'url' => 'ftp://mirror.rise.ph/mageia', ), - 8 => + 11 => array ( 'zone' => 'PH', 'country' => 'PH', 'city' => 'Cebu', 'url' => 'http://mirror.rise.ph/mageia', ), - 9 => + 12 => array ( 'zone' => 'TR', 'country' => 'TR', 'city' => 'Ankara', 'url' => 'ftp://ftp.linux.org.tr/mageia', ), - 10 => + 13 => array ( 'zone' => 'TR', 'country' => 'TR', 'city' => 'Ankara', 'url' => 'http://ftp.linux.org.tr/mageia', ), - 11 => + 14 => array ( 'zone' => 'TW', 'country' => 'TW', 'city' => 'Chungli', 'url' => 'ftp://ftp.yzu.edu.tw/Linux/Mageia', ), - 12 => + 15 => array ( 'zone' => 'TW', 'country' => 'TW', 'city' => 'HsinChu', 'url' => 'ftp://free.nchc.org.tw/mageia', ), - 13 => + 16 => array ( 'zone' => 'TW', 'country' => 'TW', 'city' => 'HsinChu', 'url' => 'ftp://ftp.twaren.net/Linux/Mageia', ), - 14 => + 17 => array ( 'zone' => 'TW', 'country' => 'TW', 'city' => 'HsinChu', 'url' => 'http://free.nchc.org.tw/mageia', ), - 15 => + 18 => array ( 'zone' => 'TW', 'country' => 'TW', 'city' => 'Taipei', 'url' => 'ftp://ftp.tku.edu.tw/Linux/Mageia', ), - 16 => + 19 => array ( 'zone' => 'TW', 'country' => 'TW', @@ -243,254 +264,261 @@ 'zone' => 'DE', 'country' => 'DE', 'city' => 'Cologne', - 'url' => 'http://mirror.netcologne.de/mageia', + 'url' => 'ftp://mirror.netcologne.de/mageia', ), 15 => array ( 'zone' => 'DE', 'country' => 'DE', + 'city' => 'Cologne', + 'url' => 'http://mirror.netcologne.de/mageia', + ), + 16 => + array ( + 'zone' => 'DE', + 'country' => 'DE', 'city' => 'Erlangen', 'url' => 'ftp://ftp.uni-erlangen.de/mirrors/Mageia', ), - 16 => + 17 => array ( 'zone' => 'DE', 'country' => 'DE', 'city' => 'Erlangen', 'url' => 'http://ftp.uni-erlangen.de/mirrors/Mageia', ), - 17 => + 18 => array ( 'zone' => 'DE', 'country' => 'DE', 'city' => 'Erlangen', 'url' => 'https://ftp.uni-erlangen.de/mageia', ), - 18 => + 19 => array ( 'zone' => 'DE', 'country' => 'DE', 'city' => 'Esslingen', 'url' => 'ftp://ftp-stud.hs-esslingen.de/pub/Mirrors/Mageia', ), - 19 => + 20 => array ( 'zone' => 'DE', 'country' => 'DE', 'city' => 'Esslingen', 'url' => 'http://ftp-stud.hs-esslingen.de/pub/Mirrors/Mageia', ), - 20 => + 21 => array ( 'zone' => 'DE', 'country' => 'DE', 'city' => 'Göttingen', 'url' => 'ftp://ftp5.gwdg.de/pub/linux/mageia', ), - 21 => + 22 => array ( 'zone' => 'DE', 'country' => 'DE', 'city' => 'Göttingen', 'url' => 'http://ftp5.gwdg.de/pub/linux/mageia', ), - 22 => + 23 => array ( 'zone' => 'DE', 'country' => 'DE', 'city' => 'freiburg', 'url' => 'ftp://mirror2.tuxinator.org/mageia', ), - 23 => + 24 => array ( 'zone' => 'DE', 'country' => 'DE', 'city' => 'freiburg', 'url' => 'http://mirror2.tuxinator.org/mageia', ), - 24 => + 25 => array ( 'zone' => 'DK', 'country' => 'DK', 'city' => 'DTU', 'url' => 'ftp://ftp.klid.dk/mageia', ), - 25 => + 26 => array ( 'zone' => 'DK', 'country' => 'DK', 'city' => 'DTU', 'url' => 'http://ftp.klid.dk/ftp/mageia', ), - 26 => + 27 => array ( 'zone' => 'FR', 'country' => 'FR', 'city' => 'Lyon', 'url' => 'ftp://fr2.rpmfind.net/linux/mageia', ), - 27 => + 28 => array ( 'zone' => 'FR', 'country' => 'FR', 'city' => 'Lyon', 'url' => 'http://fr2.rpmfind.net/linux/mageia', ), - 28 => + 29 => array ( 'zone' => 'FR', 'country' => 'FR', 'city' => 'Paris', 'url' => 'ftp://distrib-coffee.ipsl.jussieu.fr/pub/linux/Mageia', ), - 29 => + 30 => array ( 'zone' => 'FR', 'country' => 'FR', 'city' => 'Paris', 'url' => 'http://aglae.biomedicale.univ-paris5.fr', ), - 30 => + 31 => array ( 'zone' => 'FR', 'country' => 'FR', 'city' => 'Paris', 'url' => 'http://distrib-coffee.ipsl.jussieu.fr/pub/linux/Mageia', ), - 31 => + 32 => array ( 'zone' => 'GB', 'country' => 'GB', 'city' => 'Canterbury', 'url' => 'ftp://www.mirrorservice.org/sites/mageia.org/pub/mageia', ), - 32 => + 33 => array ( 'zone' => 'GB', 'country' => 'GB', 'city' => 'Canterbury', 'url' => 'http://www.mirrorservice.org/sites/mageia.org/pub/mageia', ), - 33 => + 34 => array ( 'zone' => 'GR', 'country' => 'GR', 'city' => 'Heraklion', 'url' => 'ftp://ftp.cc.uoc.gr/mirrors/linux/mageia', ), - 34 => + 35 => array ( 'zone' => 'GR', 'country' => 'GR', 'city' => 'Heraklion', 'url' => 'http://ftp.cc.uoc.gr/mirrors/linux/mageia', ), - 35 => + 36 => array ( 'zone' => 'IT', 'country' => 'IT', 'city' => 'Milan', 'url' => 'ftp://vodka.sublink.org/mageia', ), - 36 => + 37 => array ( 'zone' => 'IT', 'country' => 'IT', 'city' => 'Milan', 'url' => 'http://vodka.sublink.org/mageia', ), - 37 => + 38 => array ( 'zone' => 'IT', 'country' => 'IT', 'city' => 'Roma', 'url' => 'ftp://mageia.mirror.garr.it/mirrors/mageia', ), - 38 => + 39 => array ( 'zone' => 'IT', 'country' => 'IT', 'city' => 'Roma', 'url' => 'http://mageia.mirror.garr.it/mirrors/mageia', ), - 39 => + 40 => array ( 'zone' => 'NL', 'country' => 'NL', 'city' => 'Amsterdam', 'url' => 'ftp://ftp.nluug.nl/pub/os/Linux/distr/mageia', ), - 40 => + 41 => array ( 'zone' => 'NL', 'country' => 'NL', 'city' => 'Amsterdam', 'url' => 'http://ftp.nluug.nl/pub/os/Linux/distr/mageia', ), - 41 => + 42 => array ( 'zone' => 'NL', 'country' => 'NL', 'city' => 'Amsterdam', 'url' => 'http://mageia.mirror.triple-it.nl', ), - 42 => + 43 => array ( 'zone' => 'NL', 'country' => 'NL', 'city' => 'Enschede', 'url' => 'ftp://ftp.snt.utwente.nl/pub/os/linux/mageia', ), - 43 => + 44 => array ( 'zone' => 'NL', 'country' => 'NL', 'city' => 'Enschede', 'url' => 'http://ftp.snt.utwente.nl/pub/os/linux/mageia', ), - 44 => + 45 => array ( 'zone' => 'PL', 'country' => 'PL', 'city' => 'Warszawa', 'url' => 'ftp://ftp.icm.edu.pl/pub/Linux/sunsite/distributions/mageia', ), - 45 => + 46 => array ( 'zone' => 'PL', 'country' => 'PL', 'city' => 'Warszawa', 'url' => 'http://ftp.icm.edu.pl/pub/Linux/sunsite/distributions/mageia', ), - 46 => + 47 => array ( 'zone' => 'RU', 'country' => 'RU', 'city' => 'Moscow', 'url' => 'ftp://mirror.yandex.ru/mageia', ), - 47 => + 48 => array ( 'zone' => 'RU', 'country' => 'RU', 'city' => 'Moscow', 'url' => 'http://mirror.yandex.ru/mageia', ), - 48 => + 49 => array ( 'zone' => 'SE', 'country' => 'SE', 'city' => 'Umeå', 'url' => 'http://ftp.acc.umu.se/mirror/mageia', ), - 49 => + 50 => array ( 'zone' => 'UA', 'country' => 'UA', 'city' => 'Vinnytsia', 'url' => 'ftp://mageia.ip-connect.vn.ua/mirror/mageia', ), - 50 => + 51 => array ( 'zone' => 'UA', 'country' => 'UA', @@ -577,6 +605,20 @@ 'city' => 'glen allen', 'url' => 'http://mageia.jameswhitby.net/mageia', ), + 11 => + array ( + 'zone' => 'US', + 'country' => 'US', + 'city' => 'lansing', + 'url' => 'ftp://mirrors-usa.go-parts.com/mageia', + ), + 12 => + array ( + 'zone' => 'US', + 'country' => 'US', + 'city' => 'lansing', + 'url' => 'http://mirrors-usa.go-parts.com/mageia', + ), ), '_C:OC' => array ( @@ -609,14 +651,14 @@ 'zone' => 'BR', 'country' => 'BR', 'city' => 'Brasilia', - 'url' => 'http://mageia.fis.unb.br', + 'url' => 'ftp://mageia.fis.unb.br/pub/linux/mageia', ), 3 => array ( 'zone' => 'BR', 'country' => 'BR', - 'city' => 'Campinas', - 'url' => 'http://ftp.las.ic.unicamp.br/pub/mageia', + 'city' => 'Brasilia', + 'url' => 'http://mageia.fis.unb.br', ), 4 => array ( diff --git a/lib/cached.list_doc.php b/lib/cached.list_doc.php index 2eb473654..c8188940f 100644 --- a/lib/cached.list_doc.php +++ b/lib/cached.list_doc.php @@ -23,121 +23,142 @@ 'zone' => 'CN', 'country' => 'CN', 'city' => 'Beijing', - 'url' => 'http://mirrors.tuna.tsinghua.edu.cn/mageia', + 'url' => 'ftp://mirrors.yun-idc.com/mageia', ), 1 => array ( 'zone' => 'CN', 'country' => 'CN', 'city' => 'Beijing', - 'url' => 'http://mirrors.yun-idc.com/mageia', + 'url' => 'http://mirrors.tuna.tsinghua.edu.cn/mageia', ), 2 => array ( 'zone' => 'CN', 'country' => 'CN', 'city' => 'Beijing', - 'url' => 'https://mirrors.tuna.tsinghua.edu.cn/mageia', + 'url' => 'http://mirrors.yun-idc.com/mageia', ), 3 => array ( 'zone' => 'CN', 'country' => 'CN', + 'city' => 'Beijing', + 'url' => 'https://mirrors.tuna.tsinghua.edu.cn/mageia', + ), + 4 => + array ( + 'zone' => 'CN', + 'country' => 'CN', 'city' => 'Hefei', 'url' => 'ftp://mirrors.ustc.edu.cn/mageia', ), - 4 => + 5 => array ( 'zone' => 'CN', 'country' => 'CN', 'city' => 'Hefei', 'url' => 'http://mirrors.ustc.edu.cn/mageia', ), - 5 => + 6 => array ( 'zone' => 'CN', 'country' => 'CN', 'city' => 'Hefei', 'url' => 'https://mirrors.ustc.edu.cn/mageia', ), - 6 => + 7 => + array ( + 'zone' => 'CN', + 'country' => 'CN', + 'city' => 'Shanghai', + 'url' => 'http://ftp.sjtu.edu.cn/mageia', + ), + 8 => + array ( + 'zone' => 'CN', + 'country' => 'CN', + 'city' => 'Shanghai', + 'url' => 'https://ftp.sjtu.edu.cn/mageia', + ), + 9 => array ( 'zone' => 'JP', 'country' => 'JP', 'city' => 'Tsukuba', 'url' => 'http://ftp.tsukuba.wide.ad.jp/Linux/mageia', ), - 7 => + 10 => array ( 'zone' => 'PH', 'country' => 'PH', 'city' => 'Cebu', 'url' => 'ftp://mirror.rise.ph/mageia', ), - 8 => + 11 => array ( 'zone' => 'PH', 'country' => 'PH', 'city' => 'Cebu', 'url' => 'http://mirror.rise.ph/mageia', ), - 9 => + 12 => array ( 'zone' => 'TR', 'country' => 'TR', 'city' => 'Ankara', 'url' => 'ftp://ftp.linux.org.tr/mageia', ), - 10 => + 13 => array ( 'zone' => 'TR', 'country' => 'TR', 'city' => 'Ankara', 'url' => 'http://ftp.linux.org.tr/mageia', ), - 11 => + 14 => array ( 'zone' => 'TW', 'country' => 'TW', 'city' => 'Chungli', 'url' => 'ftp://ftp.yzu.edu.tw/Linux/Mageia', ), - 12 => + 15 => array ( 'zone' => 'TW', 'country' => 'TW', 'city' => 'Chungli', 'url' => 'http://ftp.yzu.edu.tw/Linux/Mageia', ), - 13 => + 16 => array ( 'zone' => 'TW', 'country' => 'TW', 'city' => 'HsinChu', 'url' => 'ftp://free.nchc.org.tw/mageia', ), - 14 => + 17 => array ( 'zone' => 'TW', 'country' => 'TW', 'city' => 'HsinChu', 'url' => 'ftp://ftp.twaren.net/Linux/Mageia', ), - 15 => + 18 => array ( 'zone' => 'TW', 'country' => 'TW', 'city' => 'HsinChu', 'url' => 'http://free.nchc.org.tw/mageia', ), - 16 => + 19 => array ( 'zone' => 'TW', 'country' => 'TW', 'city' => 'Taipei', 'url' => 'ftp://ftp.tku.edu.tw/Linux/Mageia', ), - 17 => + 20 => array ( 'zone' => 'TW', 'country' => 'TW', @@ -250,254 +271,261 @@ 'zone' => 'DE', 'country' => 'DE', 'city' => 'Cologne', - 'url' => 'http://mirror.netcologne.de/mageia', + 'url' => 'ftp://mirror.netcologne.de/mageia', ), 15 => array ( 'zone' => 'DE', 'country' => 'DE', + 'city' => 'Cologne', + 'url' => 'http://mirror.netcologne.de/mageia', + ), + 16 => + array ( + 'zone' => 'DE', + 'country' => 'DE', 'city' => 'Erlangen', 'url' => 'ftp://ftp.uni-erlangen.de/mirrors/Mageia', ), - 16 => + 17 => array ( 'zone' => 'DE', 'country' => 'DE', 'city' => 'Erlangen', 'url' => 'http://ftp.uni-erlangen.de/mirrors/Mageia', ), - 17 => + 18 => array ( 'zone' => 'DE', 'country' => 'DE', 'city' => 'Erlangen', 'url' => 'https://ftp.uni-erlangen.de/mageia', ), - 18 => + 19 => array ( 'zone' => 'DE', 'country' => 'DE', 'city' => 'Esslingen', 'url' => 'ftp://ftp-stud.hs-esslingen.de/pub/Mirrors/Mageia', ), - 19 => + 20 => array ( 'zone' => 'DE', 'country' => 'DE', 'city' => 'Esslingen', 'url' => 'http://ftp-stud.hs-esslingen.de/pub/Mirrors/Mageia', ), - 20 => + 21 => array ( 'zone' => 'DE', 'country' => 'DE', 'city' => 'Göttingen', 'url' => 'ftp://ftp5.gwdg.de/pub/linux/mageia', ), - 21 => + 22 => array ( 'zone' => 'DE', 'country' => 'DE', 'city' => 'Göttingen', 'url' => 'http://ftp5.gwdg.de/pub/linux/mageia', ), - 22 => + 23 => array ( 'zone' => 'DE', 'country' => 'DE', 'city' => 'freiburg', 'url' => 'ftp://mirror2.tuxinator.org/mageia', ), - 23 => + 24 => array ( 'zone' => 'DE', 'country' => 'DE', 'city' => 'freiburg', 'url' => 'http://mirror2.tuxinator.org/mageia', ), - 24 => + 25 => array ( 'zone' => 'DK', 'country' => 'DK', 'city' => 'DTU', 'url' => 'ftp://ftp.klid.dk/mageia', ), - 25 => + 26 => array ( 'zone' => 'DK', 'country' => 'DK', 'city' => 'DTU', 'url' => 'http://ftp.klid.dk/ftp/mageia', ), - 26 => + 27 => array ( 'zone' => 'FR', 'country' => 'FR', 'city' => 'Lyon', 'url' => 'ftp://fr2.rpmfind.net/linux/mageia', ), - 27 => + 28 => array ( 'zone' => 'FR', 'country' => 'FR', 'city' => 'Lyon', 'url' => 'http://fr2.rpmfind.net/linux/mageia', ), - 28 => + 29 => array ( 'zone' => 'FR', 'country' => 'FR', 'city' => 'Paris', 'url' => 'ftp://distrib-coffee.ipsl.jussieu.fr/pub/linux/Mageia', ), - 29 => + 30 => array ( 'zone' => 'FR', 'country' => 'FR', 'city' => 'Paris', 'url' => 'http://aglae.biomedicale.univ-paris5.fr', ), - 30 => + 31 => array ( 'zone' => 'FR', 'country' => 'FR', 'city' => 'Paris', 'url' => 'http://distrib-coffee.ipsl.jussieu.fr/pub/linux/Mageia', ), - 31 => + 32 => array ( 'zone' => 'GB', 'country' => 'GB', 'city' => 'Canterbury', 'url' => 'ftp://www.mirrorservice.org/sites/mageia.org/pub/mageia', ), - 32 => + 33 => array ( 'zone' => 'GB', 'country' => 'GB', 'city' => 'Canterbury', 'url' => 'http://www.mirrorservice.org/sites/mageia.org/pub/mageia', ), - 33 => + 34 => array ( 'zone' => 'GR', 'country' => 'GR', 'city' => 'Heraklion', 'url' => 'ftp://ftp.cc.uoc.gr/mirrors/linux/mageia', ), - 34 => + 35 => array ( 'zone' => 'GR', 'country' => 'GR', 'city' => 'Heraklion', 'url' => 'http://ftp.cc.uoc.gr/mirrors/linux/mageia', ), - 35 => + 36 => array ( 'zone' => 'IT', 'country' => 'IT', 'city' => 'Milan', 'url' => 'ftp://vodka.sublink.org/mageia', ), - 36 => + 37 => array ( 'zone' => 'IT', 'country' => 'IT', 'city' => 'Milan', 'url' => 'http://vodka.sublink.org/mageia', ), - 37 => + 38 => array ( 'zone' => 'IT', 'country' => 'IT', 'city' => 'Roma', 'url' => 'ftp://mageia.mirror.garr.it/mirrors/mageia', ), - 38 => + 39 => array ( 'zone' => 'IT', 'country' => 'IT', 'city' => 'Roma', 'url' => 'http://mageia.mirror.garr.it/mirrors/mageia', ), - 39 => + 40 => array ( 'zone' => 'NL', 'country' => 'NL', 'city' => 'Amsterdam', 'url' => 'ftp://ftp.nluug.nl/pub/os/Linux/distr/mageia', ), - 40 => + 41 => array ( 'zone' => 'NL', 'country' => 'NL', 'city' => 'Amsterdam', 'url' => 'http://ftp.nluug.nl/pub/os/Linux/distr/mageia', ), - 41 => + 42 => array ( 'zone' => 'NL', 'country' => 'NL', 'city' => 'Amsterdam', 'url' => 'http://mageia.mirror.triple-it.nl', ), - 42 => + 43 => array ( 'zone' => 'NL', 'country' => 'NL', 'city' => 'Enschede', 'url' => 'ftp://ftp.snt.utwente.nl/pub/os/linux/mageia', ), - 43 => + 44 => array ( 'zone' => 'NL', 'country' => 'NL', 'city' => 'Enschede', 'url' => 'http://ftp.snt.utwente.nl/pub/os/linux/mageia', ), - 44 => + 45 => array ( 'zone' => 'PL', 'country' => 'PL', 'city' => 'Warszawa', 'url' => 'ftp://ftp.icm.edu.pl/pub/Linux/sunsite/distributions/mageia', ), - 45 => + 46 => array ( 'zone' => 'PL', 'country' => 'PL', 'city' => 'Warszawa', 'url' => 'http://ftp.icm.edu.pl/pub/Linux/sunsite/distributions/mageia', ), - 46 => + 47 => array ( 'zone' => 'RU', 'country' => 'RU', 'city' => 'Moscow', 'url' => 'ftp://mirror.yandex.ru/mageia', ), - 47 => + 48 => array ( 'zone' => 'RU', 'country' => 'RU', 'city' => 'Moscow', 'url' => 'http://mirror.yandex.ru/mageia', ), - 48 => + 49 => array ( 'zone' => 'SE', 'country' => 'SE', 'city' => 'Umeå', 'url' => 'http://ftp.acc.umu.se/mirror/mageia', ), - 49 => + 50 => array ( 'zone' => 'UA', 'country' => 'UA', 'city' => 'Vinnytsia', 'url' => 'ftp://mageia.ip-connect.vn.ua/mirror/mageia', ), - 50 => + 51 => array ( 'zone' => 'UA', 'country' => 'UA', @@ -616,14 +644,14 @@ 'zone' => 'BR', 'country' => 'BR', 'city' => 'Brasilia', - 'url' => 'http://mageia.fis.unb.br', + 'url' => 'ftp://mageia.fis.unb.br/pub/linux/mageia', ), 3 => array ( 'zone' => 'BR', 'country' => 'BR', - 'city' => 'Campinas', - 'url' => 'http://ftp.las.ic.unicamp.br/pub/mageia', + 'city' => 'Brasilia', + 'url' => 'http://mageia.fis.unb.br', ), 4 => array ( diff --git a/lib/cached.list_mirrorlist.php b/lib/cached.list_mirrorlist.php new file mode 100644 index 000000000..e4d96bcda --- /dev/null +++ b/lib/cached.list_mirrorlist.php @@ -0,0 +1,664 @@ +<?php $mirrors = array ( + '_C:AF' => + array ( + 0 => + array ( + 'zone' => 'ZA', + 'country' => 'ZA', + 'city' => 'Stellenbosch', + 'url' => 'ftp://ftp.sun.ac.za/pub/mirrors/mageia', + ), + 1 => + array ( + 'zone' => 'ZA', + 'country' => 'ZA', + 'city' => 'Stellenbosch', + 'url' => 'http://ftp.sun.ac.za/ftp/pub/mirrors/mageia', + ), + ), + '_C:AS' => + array ( + 0 => + array ( + 'zone' => 'CN', + 'country' => 'CN', + 'city' => 'Beijing', + 'url' => 'ftp://mirrors.yun-idc.com/mageia', + ), + 1 => + array ( + 'zone' => 'CN', + 'country' => 'CN', + 'city' => 'Beijing', + 'url' => 'http://mirrors.tuna.tsinghua.edu.cn/mageia', + ), + 2 => + array ( + 'zone' => 'CN', + 'country' => 'CN', + 'city' => 'Beijing', + 'url' => 'http://mirrors.yun-idc.com/mageia', + ), + 3 => + array ( + 'zone' => 'CN', + 'country' => 'CN', + 'city' => 'Beijing', + 'url' => 'https://mirrors.tuna.tsinghua.edu.cn/mageia', + ), + 4 => + array ( + 'zone' => 'CN', + 'country' => 'CN', + 'city' => 'Hefei', + 'url' => 'ftp://mirrors.ustc.edu.cn/mageia', + ), + 5 => + array ( + 'zone' => 'CN', + 'country' => 'CN', + 'city' => 'Hefei', + 'url' => 'http://mirrors.ustc.edu.cn/mageia', + ), + 6 => + array ( + 'zone' => 'CN', + 'country' => 'CN', + 'city' => 'Hefei', + 'url' => 'https://mirrors.ustc.edu.cn/mageia', + ), + 7 => + array ( + 'zone' => 'CN', + 'country' => 'CN', + 'city' => 'Shanghai', + 'url' => 'http://ftp.sjtu.edu.cn/mageia', + ), + 8 => + array ( + 'zone' => 'CN', + 'country' => 'CN', + 'city' => 'Shanghai', + 'url' => 'https://ftp.sjtu.edu.cn/mageia', + ), + 9 => + array ( + 'zone' => 'JP', + 'country' => 'JP', + 'city' => 'Tsukuba', + 'url' => 'http://ftp.tsukuba.wide.ad.jp/Linux/mageia', + ), + 10 => + array ( + 'zone' => 'PH', + 'country' => 'PH', + 'city' => 'Cebu', + 'url' => 'ftp://mirror.rise.ph/mageia', + ), + 11 => + array ( + 'zone' => 'PH', + 'country' => 'PH', + 'city' => 'Cebu', + 'url' => 'http://mirror.rise.ph/mageia', + ), + 12 => + array ( + 'zone' => 'TR', + 'country' => 'TR', + 'city' => 'Ankara', + 'url' => 'ftp://ftp.linux.org.tr/mageia', + ), + 13 => + array ( + 'zone' => 'TR', + 'country' => 'TR', + 'city' => 'Ankara', + 'url' => 'http://ftp.linux.org.tr/mageia', + ), + 14 => + array ( + 'zone' => 'TW', + 'country' => 'TW', + 'city' => 'Chungli', + 'url' => 'ftp://ftp.yzu.edu.tw/Linux/Mageia', + ), + 15 => + array ( + 'zone' => 'TW', + 'country' => 'TW', + 'city' => 'Chungli', + 'url' => 'http://ftp.yzu.edu.tw/Linux/Mageia', + ), + 16 => + array ( + 'zone' => 'TW', + 'country' => 'TW', + 'city' => 'HsinChu', + 'url' => 'ftp://free.nchc.org.tw/mageia', + ), + 17 => + array ( + 'zone' => 'TW', + 'country' => 'TW', + 'city' => 'HsinChu', + 'url' => 'ftp://ftp.twaren.net/Linux/Mageia', + ), + 18 => + array ( + 'zone' => 'TW', + 'country' => 'TW', + 'city' => 'HsinChu', + 'url' => 'http://free.nchc.org.tw/mageia', + ), + 19 => + array ( + 'zone' => 'TW', + 'country' => 'TW', + 'city' => 'Taipei', + 'url' => 'ftp://ftp.tku.edu.tw/Linux/Mageia', + ), + 20 => + array ( + 'zone' => 'TW', + 'country' => 'TW', + 'city' => 'Taipei', + 'url' => 'http://ftp.tku.edu.tw/Linux/Mageia', + ), + ), + '_C:EU' => + array ( + 0 => + array ( + 'zone' => 'BE', + 'country' => 'BE', + 'city' => 'Brussels', + 'url' => 'ftp://ftp.belnet.be/mirror/mageia', + ), + 1 => + array ( + 'zone' => 'BE', + 'country' => 'BE', + 'city' => 'Brussels', + 'url' => 'http://ftp.belnet.be/mageia', + ), + 2 => + array ( + 'zone' => 'BG', + 'country' => 'BG', + 'city' => 'Sofia', + 'url' => 'ftp://mirrors.netix.net/mageia', + ), + 3 => + array ( + 'zone' => 'BG', + 'country' => 'BG', + 'city' => 'Sofia', + 'url' => 'http://mirrors.netix.net/mageia', + ), + 4 => + array ( + 'zone' => 'BY', + 'country' => 'BY', + 'city' => 'Minsk', + 'url' => 'ftp://mirror.datacenter.by/pub/mirrors/mageia.org', + ), + 5 => + array ( + 'zone' => 'BY', + 'country' => 'BY', + 'city' => 'Minsk', + 'url' => 'http://mirror.datacenter.by/pub/mirrors/mageia.org', + ), + 6 => + array ( + 'zone' => 'CZ', + 'country' => 'CZ', + 'city' => '?', + 'url' => 'http://mageia.supp.name', + ), + 7 => + array ( + 'zone' => 'CZ', + 'country' => 'CZ', + 'city' => 'Brno', + 'url' => 'ftp://ftp.fi.muni.cz/pub/linux/mageia', + ), + 8 => + array ( + 'zone' => 'CZ', + 'country' => 'CZ', + 'city' => 'Brno', + 'url' => 'http://ftp.fi.muni.cz/pub/linux/mageia', + ), + 9 => + array ( + 'zone' => 'DE', + 'country' => 'DE', + 'city' => '?', + 'url' => 'ftp://srv3.tuxinator.org/mageia', + ), + 10 => + array ( + 'zone' => 'DE', + 'country' => 'DE', + 'city' => '?', + 'url' => 'ftp://srv4.tuxinator.org/mageia', + ), + 11 => + array ( + 'zone' => 'DE', + 'country' => 'DE', + 'city' => '?', + 'url' => 'http://srv3.tuxinator.org/mageia', + ), + 12 => + array ( + 'zone' => 'DE', + 'country' => 'DE', + 'city' => 'Cologne', + 'url' => 'ftp://mirror.netcologne.de/mageia', + ), + 13 => + array ( + 'zone' => 'DE', + 'country' => 'DE', + 'city' => 'Cologne', + 'url' => 'http://mirror.netcologne.de/mageia', + ), + 14 => + array ( + 'zone' => 'DE', + 'country' => 'DE', + 'city' => 'Erlangen', + 'url' => 'ftp://ftp.uni-erlangen.de/mirrors/Mageia', + ), + 15 => + array ( + 'zone' => 'DE', + 'country' => 'DE', + 'city' => 'Erlangen', + 'url' => 'http://ftp.uni-erlangen.de/mirrors/Mageia', + ), + 16 => + array ( + 'zone' => 'DE', + 'country' => 'DE', + 'city' => 'Erlangen', + 'url' => 'https://ftp.uni-erlangen.de/mageia', + ), + 17 => + array ( + 'zone' => 'DE', + 'country' => 'DE', + 'city' => 'Esslingen', + 'url' => 'ftp://ftp-stud.hs-esslingen.de/pub/Mirrors/Mageia', + ), + 18 => + array ( + 'zone' => 'DE', + 'country' => 'DE', + 'city' => 'Esslingen', + 'url' => 'http://ftp-stud.hs-esslingen.de/pub/Mirrors/Mageia', + ), + 19 => + array ( + 'zone' => 'DE', + 'country' => 'DE', + 'city' => 'Göttingen', + 'url' => 'ftp://ftp5.gwdg.de/pub/linux/mageia', + ), + 20 => + array ( + 'zone' => 'DE', + 'country' => 'DE', + 'city' => 'Göttingen', + 'url' => 'http://ftp5.gwdg.de/pub/linux/mageia', + ), + 21 => + array ( + 'zone' => 'DE', + 'country' => 'DE', + 'city' => 'freiburg', + 'url' => 'ftp://mirror2.tuxinator.org/mageia', + ), + 22 => + array ( + 'zone' => 'DE', + 'country' => 'DE', + 'city' => 'freiburg', + 'url' => 'http://mirror2.tuxinator.org/mageia', + ), + 23 => + array ( + 'zone' => 'DK', + 'country' => 'DK', + 'city' => 'DTU', + 'url' => 'ftp://ftp.klid.dk/mageia', + ), + 24 => + array ( + 'zone' => 'DK', + 'country' => 'DK', + 'city' => 'DTU', + 'url' => 'http://ftp.klid.dk/ftp/mageia', + ), + 25 => + array ( + 'zone' => 'FR', + 'country' => 'FR', + 'city' => 'Lyon', + 'url' => 'ftp://fr2.rpmfind.net/linux/mageia', + ), + 26 => + array ( + 'zone' => 'FR', + 'country' => 'FR', + 'city' => 'Lyon', + 'url' => 'http://fr2.rpmfind.net/linux/mageia', + ), + 27 => + array ( + 'zone' => 'FR', + 'country' => 'FR', + 'city' => 'Paris', + 'url' => 'ftp://distrib-coffee.ipsl.jussieu.fr/pub/linux/Mageia', + ), + 28 => + array ( + 'zone' => 'FR', + 'country' => 'FR', + 'city' => 'Paris', + 'url' => 'http://aglae.biomedicale.univ-paris5.fr', + ), + 29 => + array ( + 'zone' => 'FR', + 'country' => 'FR', + 'city' => 'Paris', + 'url' => 'http://distrib-coffee.ipsl.jussieu.fr/pub/linux/Mageia', + ), + 30 => + array ( + 'zone' => 'GB', + 'country' => 'GB', + 'city' => 'Canterbury', + 'url' => 'ftp://www.mirrorservice.org/sites/mageia.org/pub/mageia', + ), + 31 => + array ( + 'zone' => 'GB', + 'country' => 'GB', + 'city' => 'Canterbury', + 'url' => 'http://www.mirrorservice.org/sites/mageia.org/pub/mageia', + ), + 32 => + array ( + 'zone' => 'GR', + 'country' => 'GR', + 'city' => 'Heraklion', + 'url' => 'ftp://ftp.cc.uoc.gr/mirrors/linux/mageia', + ), + 33 => + array ( + 'zone' => 'GR', + 'country' => 'GR', + 'city' => 'Heraklion', + 'url' => 'http://ftp.cc.uoc.gr/mirrors/linux/mageia', + ), + 34 => + array ( + 'zone' => 'IT', + 'country' => 'IT', + 'city' => 'Milan', + 'url' => 'ftp://vodka.sublink.org/mageia', + ), + 35 => + array ( + 'zone' => 'IT', + 'country' => 'IT', + 'city' => 'Milan', + 'url' => 'http://vodka.sublink.org/mageia', + ), + 36 => + array ( + 'zone' => 'IT', + 'country' => 'IT', + 'city' => 'Roma', + 'url' => 'ftp://mageia.mirror.garr.it/mirrors/mageia', + ), + 37 => + array ( + 'zone' => 'IT', + 'country' => 'IT', + 'city' => 'Roma', + 'url' => 'http://mageia.mirror.garr.it/mirrors/mageia', + ), + 38 => + array ( + 'zone' => 'NL', + 'country' => 'NL', + 'city' => 'Amsterdam', + 'url' => 'ftp://ftp.nluug.nl/pub/os/Linux/distr/mageia', + ), + 39 => + array ( + 'zone' => 'NL', + 'country' => 'NL', + 'city' => 'Amsterdam', + 'url' => 'http://ftp.nluug.nl/pub/os/Linux/distr/mageia', + ), + 40 => + array ( + 'zone' => 'NL', + 'country' => 'NL', + 'city' => 'Amsterdam', + 'url' => 'http://mageia.mirror.triple-it.nl', + ), + 41 => + array ( + 'zone' => 'NL', + 'country' => 'NL', + 'city' => 'Enschede', + 'url' => 'ftp://ftp.snt.utwente.nl/pub/os/linux/mageia', + ), + 42 => + array ( + 'zone' => 'NL', + 'country' => 'NL', + 'city' => 'Enschede', + 'url' => 'http://ftp.snt.utwente.nl/pub/os/linux/mageia', + ), + 43 => + array ( + 'zone' => 'PL', + 'country' => 'PL', + 'city' => 'Warszawa', + 'url' => 'ftp://ftp.icm.edu.pl/pub/Linux/sunsite/distributions/mageia', + ), + 44 => + array ( + 'zone' => 'PL', + 'country' => 'PL', + 'city' => 'Warszawa', + 'url' => 'http://ftp.icm.edu.pl/pub/Linux/sunsite/distributions/mageia', + ), + 45 => + array ( + 'zone' => 'RU', + 'country' => 'RU', + 'city' => 'Moscow', + 'url' => 'ftp://mirror.yandex.ru/mageia', + ), + 46 => + array ( + 'zone' => 'RU', + 'country' => 'RU', + 'city' => 'Moscow', + 'url' => 'http://mirror.yandex.ru/mageia', + ), + 47 => + array ( + 'zone' => 'SE', + 'country' => 'SE', + 'city' => 'Umeå', + 'url' => 'http://ftp.acc.umu.se/mirror/mageia', + ), + 48 => + array ( + 'zone' => 'UA', + 'country' => 'UA', + 'city' => 'Vinnytsia', + 'url' => 'ftp://mageia.ip-connect.vn.ua/mirror/mageia', + ), + 49 => + array ( + 'zone' => 'UA', + 'country' => 'UA', + 'city' => 'Vinnytsia', + 'url' => 'http://mageia.ip-connect.vn.ua', + ), + ), + '_C:NA' => + array ( + 0 => + array ( + 'zone' => 'CA', + 'country' => 'CA', + 'city' => 'Montréal', + 'url' => 'http://mageia.balinor.net', + ), + 1 => + array ( + 'zone' => 'CA', + 'country' => 'CA', + 'city' => 'Toronto', + 'url' => 'ftp://mageia.webconquest.com', + ), + 2 => + array ( + 'zone' => 'CA', + 'country' => 'CA', + 'city' => 'Toronto', + 'url' => 'http://mageia.webconquest.com', + ), + 3 => + array ( + 'zone' => 'US', + 'country' => 'US', + 'city' => '?', + 'url' => 'http://mirrors.kernel.org/mageia', + ), + 4 => + array ( + 'zone' => 'US', + 'country' => 'US', + 'city' => 'Durham', + 'url' => 'http://distro.ibiblio.org/pub/linux/distributions/mageia', + ), + 5 => + array ( + 'zone' => 'US', + 'country' => 'US', + 'city' => 'Fremont', + 'url' => 'http://mirror.easthsia.com/mageia', + ), + 6 => + array ( + 'zone' => 'US', + 'country' => 'US', + 'city' => 'Lenoir', + 'url' => 'http://mirror.dacentec.com/mageia', + ), + 7 => + array ( + 'zone' => 'US', + 'country' => 'US', + 'city' => 'Southfeild', + 'url' => 'ftp://mirror.nexcess.net/mageia', + ), + 8 => + array ( + 'zone' => 'US', + 'country' => 'US', + 'city' => 'Southfeild', + 'url' => 'http://mirror.nexcess.net/mageia', + ), + 9 => + array ( + 'zone' => 'US', + 'country' => 'US', + 'city' => 'glen allen', + 'url' => 'ftp://mageia.jameswhitby.net/mageia', + ), + 10 => + array ( + 'zone' => 'US', + 'country' => 'US', + 'city' => 'glen allen', + 'url' => 'http://mageia.jameswhitby.net/mageia', + ), + ), + '_C:OC' => + array ( + 0 => + array ( + 'zone' => 'AU', + 'country' => 'AU', + 'city' => 'Adelaide', + 'url' => 'http://mirror.internode.on.net/pub/mageia', + ), + 1 => + array ( + 'zone' => 'AU', + 'country' => 'AU', + 'city' => 'Brisbane', + 'url' => 'http://mirror.aarnet.edu.au/pub/mageia', + ), + ), + '_C:SA' => + array ( + 0 => + array ( + 'zone' => 'BR', + 'country' => 'BR', + 'city' => '?', + 'url' => 'ftp://mageia.c3sl.ufpr.br/mageia', + ), + 1 => + array ( + 'zone' => 'BR', + 'country' => 'BR', + 'city' => '?', + 'url' => 'http://mageia.c3sl.ufpr.br', + ), + 2 => + array ( + 'zone' => 'BR', + 'country' => 'BR', + 'city' => 'Brasilia', + 'url' => 'ftp://mageia.fis.unb.br/pub/linux/mageia', + ), + 3 => + array ( + 'zone' => 'BR', + 'country' => 'BR', + 'city' => 'Brasilia', + 'url' => 'http://mageia.fis.unb.br', + ), + 4 => + array ( + 'zone' => 'EC', + 'country' => 'EC', + 'city' => 'Cuenca', + 'url' => 'ftp://mirror.cedia.org.ec/mageia', + ), + 5 => + array ( + 'zone' => 'EC', + 'country' => 'EC', + 'city' => 'Cuenca', + 'url' => 'http://mirror.cedia.org.ec/mageia', + ), + ), +); ?> diff --git a/tools/update-mirrors-list.php b/tools/update-mirrors-list.php index 0ee8601a2..3b65c6529 100644 --- a/tools/update-mirrors-list.php +++ b/tools/update-mirrors-list.php @@ -15,3 +15,7 @@ echo PHP_EOL . PHP_EOL; echo 'Rebuilding ./lib/cached.list_doc.php with the date.txt as a test file.' . PHP_EOL; Downloads::get_all_mirrors(false, true); +echo PHP_EOL . PHP_EOL; + +echo 'Rebuilding ./lib/cached.list_mirrorlist.php with the repomd.xml as a test file.' . PHP_EOL; +Downloads::get_all_mirrors(false, false, true); |