update_manager: fix semver conversion
When converting a semantic version to a list for comparisons guarantee that the base version has 3 parts. Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
parent
4ff7a50821
commit
c331c5a7d7
|
@ -944,6 +944,8 @@ class GitRepo:
|
|||
if core[0] == "v":
|
||||
core = core[1:]
|
||||
base_ver = [int(part) for part in core.split(".")]
|
||||
while len(base_ver) < 3:
|
||||
base_ver.append(0)
|
||||
base_ver.append({"alpha": 0, "beta": 1}.get(ver_match.group(3), 2))
|
||||
base_ver.append(int(ver_match.group(5)[1:]))
|
||||
except Exception:
|
||||
|
|
Loading…
Reference in New Issue