From 4ff7a50821f5693d2a7a3d0cb35ea8375b3aa1ce Mon Sep 17 00:00:00 2001 From: Eric Callahan Date: Tue, 7 Feb 2023 08:06:13 -0500 Subject: [PATCH] update_manager: relax semantic tag requirement Allow tags versions with one, two, or three parts. The following examples are now valid: v1 v1.3 v1.0,10 Signed-off-by: Eric Callahan --- moonraker/components/update_manager/git_deploy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moonraker/components/update_manager/git_deploy.py b/moonraker/components/update_manager/git_deploy.py index 7d8e311..44f2672 100644 --- a/moonraker/components/update_manager/git_deploy.py +++ b/moonraker/components/update_manager/git_deploy.py @@ -264,7 +264,7 @@ GIT_REF_FMT = ( ) class GitRepo: - tag_r = re.compile(r"(v?\d+\.\d+\.\d+(-(alpha|beta)(\.\d+)?)?)(-\d+)?") + tag_r = re.compile(r"(v?\d+(?:\.\d+){0,2}(-(alpha|beta)(\.\d+)?)?)(-\d+)?") def __init__(self, cmd_helper: CommandHelper, git_path: pathlib.Path,