aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Downloads.php
diff options
context:
space:
mode:
authorfilip <filip.komar@gmail.com>2015-06-19 19:22:32 +0200
committerfilip <filip.komar@gmail.com>2015-06-19 19:22:32 +0200
commita337d4be05ae8b72576ac2a0de24b4f5bfe7683f (patch)
tree23c2bc80589f31699adb2d02a51fb9030bb28d2e /lib/Downloads.php
parent786166919613656cab015032d0a67a64ad191fb7 (diff)
downloadwww-a337d4be05ae8b72576ac2a0de24b4f5bfe7683f.tar
www-a337d4be05ae8b72576ac2a0de24b4f5bfe7683f.tar.gz
www-a337d4be05ae8b72576ac2a0de24b4f5bfe7683f.tar.bz2
www-a337d4be05ae8b72576ac2a0de24b4f5bfe7683f.tar.xz
www-a337d4be05ae8b72576ac2a0de24b4f5bfe7683f.zip
mirror list preparation
Diffstat (limited to 'lib/Downloads.php')
-rw-r--r--lib/Downloads.php6
1 files changed, 3 insertions, 3 deletions
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";