aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfilip <filip.komar@gmail.com>2023-06-02 15:53:51 +0200
committerfilip <filip.komar@gmail.com>2023-06-02 15:53:51 +0200
commit4282a7c54ad04de4be2db6612f86d888167ef9f1 (patch)
tree793890a7a5bd1ed3240cc79c2eb821d618e18242
parent6b51a081b5cbbe739ac018ebbefb08f7a462271b (diff)
downloadwww-4282a7c54ad04de4be2db6612f86d888167ef9f1.tar
www-4282a7c54ad04de4be2db6612f86d888167ef9f1.tar.gz
www-4282a7c54ad04de4be2db6612f86d888167ef9f1.tar.bz2
www-4282a7c54ad04de4be2db6612f86d888167ef9f1.tar.xz
www-4282a7c54ad04de4be2db6612f86d888167ef9f1.zip
updated DL sample for MGA9 B2
-rw-r--r--lib/Downloads.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/Downloads.php b/lib/Downloads.php
index b0c0c8330..0f75304e2 100644
--- a/lib/Downloads.php
+++ b/lib/Downloads.php
@@ -171,7 +171,8 @@ class Downloads
$num_of_all_mirrs = count($data);
$num_of_tested_mirrs = 0;
$common_patern = '/distrib/8/i586';
- $common_patern = '/distrib/cauldron/i586';
+ $common_patern = '/distrib/9/i586';
+ //~ $common_patern = '/distrib/cauldron/i586';
// this huge regex magic achieved with a lot of help from great https://regex101.com/
$single_mirror_parsing_regex = '/\s*continent\s*=\s*(?<continent>\w*)\s*,\s*';
$single_mirror_parsing_regex .= '\s*zone\s*=\s*(?<zone>\w*)\s*,\s*';
@@ -240,8 +241,8 @@ class Downloads
} else if ($mirrorlist) {
$test_file = $item['url'].'/distrib/8/x86_64/media/core/updates/repodata/repomd.xml'; // when changing, please change $common_patern too
} else {
- $test_file = $item['url'].'/iso/8/torrents/Mageia-9-Live-Xfce-i586.torrent';
- $test_file = $item['url'].'/iso/cauldron/torrents/Mageia-9-beta1-Live-Xfce-i586.torrent';
+ $test_file = $item['url'].'/iso/9/torrents/Mageia-9-Live-Xfce-i586.torrent';
+ $test_file = $item['url'].'/iso/cauldron/torrents/Mageia-9-beta2-Live-Xfce-i586.torrent';
}
if (false === @file_get_contents($test_file)) {
$num_dn++;