From ef8568c98723c656e6b5e5002801b987a8e1272a Mon Sep 17 00:00:00 2001 From: Manuel Huber Date: Sat, 18 Mar 2023 00:03:21 +0100 Subject: [PATCH] gnomechecker: Versions of the format 0.x.y should be considered stable --- src/checkers/gnomechecker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/checkers/gnomechecker.py b/src/checkers/gnomechecker.py index 44b3696b..8c67cb73 100644 --- a/src/checkers/gnomechecker.py +++ b/src/checkers/gnomechecker.py @@ -32,7 +32,7 @@ def _is_stable(version: str) -> bool: major, minor = ver_list[:2] if set(ver_list[1:]) & {"alpha", "beta", "rc"}: return False - if int(major) < 40 and len(ver_list) > 2: + if int(major) > 0 and int(major) < 40 and len(ver_list) > 2: return (int(minor) % 2) == 0 # XXX If we didn't see any indication that the version is a prerelease, # assume it's a normal (stable) release