Merge pull request #2094 from YunoHost/tag_match_regex
Better handling of version format in relevant_versions()
This commit is contained in:
commit
2186eb6fcd
1 changed files with 1 additions and 1 deletions
|
@ -274,7 +274,7 @@ class AppAutoUpdater:
|
||||||
elif tag.startswith("release-"):
|
elif tag.startswith("release-"):
|
||||||
t_to_check = tag.split("-", 1)[-1].replace("-", ".")
|
t_to_check = tag.split("-", 1)[-1].replace("-", ".")
|
||||||
|
|
||||||
if re.match(r"^v?[\d\.]*\-?\d$", t_to_check):
|
if re.match(r"^v?\d+(\.\d+)*(\-\d+)?$", t_to_check):
|
||||||
return AppAutoUpdater.tag_to_int_tuple(t_to_check)
|
return AppAutoUpdater.tag_to_int_tuple(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")
|
||||||
return None
|
return None
|
||||||
|
|
Loading…
Reference in a new issue