diff options
author | Remi Collet <remi@remirepo.net> | 2025-01-07 15:25:10 +0100 |
---|---|---|
committer | Remi Collet <remi@php.net> | 2025-01-07 15:25:10 +0100 |
commit | bcde44f0c1f0aed2089624f0cd2485e3f27ea03c (patch) | |
tree | dee7c7b1be7dd34f5018e9d371a9ef5fb8feb9b0 | |
parent | 0d671be1b73d3e1892a44eeb95322315a686110d (diff) |
enable for test https://mirror.geo.yer.cloud/remi/
-rwxr-xr-x | check.php | 34 | ||||
-rw-r--r-- | enterprise/9/remi/x86_64/mirror | 1 | ||||
-rw-r--r-- | enterprise/9/safe/x86_64/mirror | 1 |
3 files changed, 25 insertions, 11 deletions
@@ -100,6 +100,7 @@ $mirrors = [ 'https://mirror.netzwerge.de/remi/', ]; $testing = [ + 'https://mirror.geo.yer.cloud/remi/', // 2025-01-07 'https://pit1.mirror.jurassicinnovations.com/remi/', 'https://mirror.raiolanetworks.com/remi/', 'http://repo1.ash.innoscale.net/remi/', @@ -171,7 +172,7 @@ function getRepoTime($uri) { if (isset($_GET['mirror']) && isset($repos[$_GET['mirror']])) { $path = $_GET['mirror']; } else { - $path = 'enterprise/8'; + $path = 'enterprise/9'; } if (isset($_GET['repo']) && in_array($_GET['repo'], $subs)) { $repo = $_GET['repo']; @@ -199,24 +200,35 @@ if (!$cli) { } $pids = array(); $ref = getRepoTime($full); -$mirrors = array_merge($mirrors, $testing); if ($ref) { if (!$cli) echo "<ul class='pkglist'>\n"; if (isset($_SERVER['argv'][1])) { - $tocheck = []; - foreach ($mirrors as $mirror) { - if (preg_match('|'.$_SERVER['argv'][1].'|', $mirror)) { - $tocheck[] = $mirror; - } + switch ($_SERVER['argv'][1]) { + case 'active': + $tocheck = $mirrors; + break; + case 'testing': + $tocheck = $testing; + break; + case 'deprecated': + $tocheck = $deprecated; + break; + default: + $tocheck = []; + foreach ($mirrors as $mirror) { + if (preg_match('|'.$_SERVER['argv'][1].'|', $mirror)) { + $tocheck[] = $mirror; + } + } + if (empty($tocheck)) { + $tocheck[] = $_SERVER['argv'][1]; + } } } else { - $tocheck = $mirrors; + $tocheck = array_merge($mirrors, $testing); } printf(($cli ? "Check %d mirror(s) of %s (%s)\n" : "<h3>%s - %s</h3>\n"), count($tocheck), $name, date('r', $ref)); foreach ($tocheck as $mirror) { - if ($_SERVER['argc']>1 && !strpos($mirror, $_SERVER['argv'][1])) { - continue; - } if ($cli) { $pid = pcntl_fork(); if ($pid<0) { diff --git a/enterprise/9/remi/x86_64/mirror b/enterprise/9/remi/x86_64/mirror index e9cf81d5..df77a1d8 100644 --- a/enterprise/9/remi/x86_64/mirror +++ b/enterprise/9/remi/x86_64/mirror @@ -54,3 +54,4 @@ https://muug.ca/mirror/remi/enterprise/9/remi/x86_64/ https://mirror.netzwerge.de/remi/enterprise/9/remi/x86_64/ https://pit.mirror.jurassicinnovations.com/remi/enterprise/enterprise/9/remi/x86_64/ https://cdn.fjordos.no/remi/enterprise/9/remi/x86_64/ +https://mirror.geo.yer.cloud/remi/enterprise/9/safe/x86_64/ diff --git a/enterprise/9/safe/x86_64/mirror b/enterprise/9/safe/x86_64/mirror index ea25402d..b356fb22 100644 --- a/enterprise/9/safe/x86_64/mirror +++ b/enterprise/9/safe/x86_64/mirror @@ -56,3 +56,4 @@ https://muug.ca/mirror/remi/enterprise/9/safe/x86_64/ https://mirror.netzwerge.de/remi/enterprise/9/safe/x86_64/ https://pit.mirror.jurassicinnovations.com/remi/enterprise/enterprise/9/safe/x86_64/ https://cdn.fjordos.no/remi/enterprise/9/safe/x86_64/ +https://mirror.geo.yer.cloud/remi/enterprise/9/safe/x86_64/ |