From 3d925c1cd1ee96d6d6267ea34c97334281e0d3d3 Mon Sep 17 00:00:00 2001 From: Steffen Lange Date: Sun, 24 Oct 2021 00:27:34 +0200 Subject: [PATCH] MariaDB 10.6: use REST API --- modules/MariaDB106.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/MariaDB106.php b/modules/MariaDB106.php index c22a336..900716d 100644 --- a/modules/MariaDB106.php +++ b/modules/MariaDB106.php @@ -2,12 +2,12 @@ class MariaDB106 extends PatchBase { function __construct() { - parent::__construct('MariaDB Foundation', 'MariaDB', 'https://downloads.mariadb.org/mariadb/10.6/'); + parent::__construct('MariaDB Foundation', 'MariaDB', 'https://mariadb.org/download/'); $this->patch->setBranch('10.6'); } function check() : bool { - if ($this->fetch('https://downloads.mariadb.org/mariadb/10.6/')) - return $this->parse('/MariaDB ([\d\.]+) Stable/'); + if ($this->fetch_json('https://downloads.mariadb.org/rest-api/mariadb/10.6/')) + return $this->parse_json('release_id'); return false; } }