From 28824becbd69e77825be6bc134f002aa99d5c7ec Mon Sep 17 00:00:00 2001 From: jakub-nt <175944085+jakub-nt@users.noreply.github.com> Date: Fri, 10 Jan 2025 19:14:55 +0100 Subject: [PATCH] `cfbs generate-release-information` no longer results in an error when using `--from` while not using `--omit-download` Signed-off-by: jakub-nt <175944085+jakub-nt@users.noreply.github.com> --- cfbs/masterfiles/analyze.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cfbs/masterfiles/analyze.py b/cfbs/masterfiles/analyze.py index 776bccf..7964794 100644 --- a/cfbs/masterfiles/analyze.py +++ b/cfbs/masterfiles/analyze.py @@ -100,6 +100,9 @@ def version_as_comparable_list(version: str): * `version_as_comparable_list("3.24.0b1")` is `[[3, 24, 0], [-1, 1]]` * `version_as_comparable_list("3.24.0-2")` is `[[3, 24, 0], [1, 2]]` * `version_as_comparable_list("3.24.x")` is `[[3, 24, 99999], [0, 0]]`""" + if version == "master": + version = "x" + if "b" not in version: if "-" not in version: version += "|0.0"