1
0
Fork 0

autoupdate_app_sources: boring special case for dokuwiki

This commit is contained in:
Alexandre Aubin 2023-06-19 21:19:06 +02:00
parent b8ed404cfd
commit 0bd955c50b

View file

@ -81,6 +81,9 @@ def filter_and_get_latest_tag(tags, app_id):
t_to_check = t t_to_check = t
if t.startswith(app_id + "-"): if t.startswith(app_id + "-"):
t_to_check = t.split("-", 1)[-1] 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): 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") print(f"Ignoring tag {t_to_check}, doesn't look like a version number")