summaryrefslogtreecommitdiffstats
path: root/check.php
diff options
context:
space:
mode:
Diffstat (limited to 'check.php')
-rwxr-xr-xcheck.php33
1 files changed, 18 insertions, 15 deletions
diff --git a/check.php b/check.php
index ffd714ca..e352b339 100755
--- a/check.php
+++ b/check.php
@@ -35,12 +35,12 @@ if ($cli) {
<?php
}
$repos = [
+ 'enterprise/9' => 'Enterprise Linux 9',
'enterprise/8' => 'Enterprise Linux 8',
'enterprise/7' => 'Enterprise Linux 7',
- 'enterprise/6' => 'Enterprise Linux 6',
- 'fedora/31' => 'Fedora 31',
- 'fedora/30' => 'Fedora 30',
- 'fedora/29' => 'Fedora 29',
+ 'fedora/41' => 'Fedora 41',
+ 'fedora/40' => 'Fedora 40',
+ 'fedora/39' => 'Fedora 39',
];
$subs = [
'remi',
@@ -66,7 +66,6 @@ $mirrors = [
'https://mirrors.tuna.tsinghua.edu.cn/remi/',
'https://mirror.23m.com/remi/',
'https://mirror.oxilion.nl/remi/',
- 'https://remi.mirror.wearetriple.com/',
'https://mirrors.uni-ruse.bg/remi/',
'https://remi.mirror.karneval.cz/',
'https://mirror.netsite.dk/remi/',
@@ -75,7 +74,6 @@ $mirrors = [
'https://mirror.netweaver.uk/remi/',
'http://ftp.riken.jp/Linux/remi/',
'https://mir01.syntis.net/remirepo/',
- 'http://mirrors.bytes.ua/remi/',
'http://mirror.hoster.kz/remi/',
'http://remirepo.reloumirrors.net/',
'https://mirror.pit.teraswitch.com/remi/',
@@ -92,25 +90,26 @@ $mirrors = [
'https://mirror.docker.ru/remi/',
'https://repo.extreme-ix.org/remi/',
'https://mirror.mangohost.net/remi/',
- 'https://bd.mirror.vanehost.com/Remi/',
- 'https://repo1.vetta.net.nz/remi/',
'https://cdn.fjordos.no/remi/',
'https://mirror.fjordos.no/remi/',
'https://muug.ca/mirror/remi/',
'https://mirror.netzwerge.de/remi/',
'https://pit.mirror.jurassicinnovations.com/remi/',
'http://mirror.yer.az/remi/',
+ 'https://mirror.raiolanetworks.com/remi/', // 2025-01-08
+ 'https://remi.mirror.wearetriple.com/', // 2025-01-10
+ 'https://mirror.geo.yer.cloud/remi/', // 2025-01-07
+ 'http://mirrors.bytes.ua/remi/', // 2025-01-13
+ 'https://remi.mivzakim.net/', // 2025-01-13
+ 'http://repo1.ash.innoscale.net/remi/', // 2025-01-13
+ 'https://bd.mirror.vanehost.com/Remi/', // 2025-01-17
];
$testing = [
- 'https://mirror.geo.yer.cloud/remi/', // 2025-01-07
- 'https://mirror.raiolanetworks.com/remi/',
- 'http://repo1.ash.innoscale.net/remi/',
];
$disabled = [
+ 'https://repo1.vetta.net.nz/remi/', // 2025-01-17 (too slow)
'http://remi.conetix.com.au/', // 2025-01-06
- 'https://remi.mivzakim.net/', // 2024-04-03
'https://mirror.usi.edu/pub/remi/', // 2024-04-03
- 'http://mirror.awanti.com/remi/', // 2024-03-20
'http://mirror.xeonbd.com/remi/',
'https://mirror.telkomuniversity.ac.id/remi/',
'http://mirror.uta.edu.ec/remi/',
@@ -118,6 +117,7 @@ $disabled = [
'http://repo1.sea.innoscale.net/remi/',
];
$deprecated = [
+ 'http://mirror.awanti.com/remi/', // 2025-01-08
'https://remi.srv.magticom.ge/',
'https://mirror.sjc02.svwh.net/remi/',
'http://mirror.upb.edu.co/remi/',
@@ -156,7 +156,7 @@ $deprecated = [
function getRepoTime($uri) {
$ctx = stream_context_create([
'http' => [
- 'timeout' => 4,
+ 'timeout' => 7,
]
]);
$txt = @file_get_contents($uri . '/repodata/repomd.xml', false, $ctx);
@@ -297,7 +297,10 @@ if ($ref) {
unset($pids[$pid]);
}
}
- if ($nb) printf("%3d mirrors checked,\n%3d are OK\n%3d are stalled\n%3d are KO.\n", $nb, $ok, $lack, $nb-$ok-$lack);
+ if ($nb) {
+ printf("%3d mirrors checked on %s,\n%3d are OK\t(%d%%)\n%3d are late\t(%d%%)\n%3d are KO.\n",
+ $nb, date("r"), $ok, $ok*100/$nb, $lack, $lack*100/$nb, $nb-$ok-$lack);
+ }
} else {
echo "</ul>\n";
}