Skip to content

Commit

Permalink
Merge pull request #359 from ManuelHu/gnome-stable-versions-major-0
Browse files Browse the repository at this point in the history
Versions of the format 0.x.y should be considered stable
  • Loading branch information
wjt authored Jan 10, 2024
2 parents 16dd1db + 9e17445 commit a6cb87d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/checkers/gnomechecker.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a6cb87d

Please sign in to comment.