From 0bd955c50bf7f266b326486501fb603a93d39a2d Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Mon, 19 Jun 2023 21:19:06 +0200 Subject: [PATCH] autoupdate_app_sources: boring special case for dokuwiki --- autoupdate_app_sources/autoupdate_app_sources.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/autoupdate_app_sources/autoupdate_app_sources.py b/autoupdate_app_sources/autoupdate_app_sources.py index 0fd1a05..340b955 100644 --- a/autoupdate_app_sources/autoupdate_app_sources.py +++ b/autoupdate_app_sources/autoupdate_app_sources.py @@ -81,6 +81,9 @@ def filter_and_get_latest_tag(tags, app_id): t_to_check = t if t.startswith(app_id + "-"): t_to_check = t.split("-", 1)[-1] + # Boring special case for dokuwiki... + elif t.startswith("release-"): + t_to_check = t.split("-", 1)[-1].replace("-", ".") if not re.match(r"^v?[\d\.]*\d$", t_to_check): print(f"Ignoring tag {t_to_check}, doesn't look like a version number")