Skip to content

Commit b1c9026

Browse files
committed
context: fix is_stable_release() definition of "stable"
According to distro-info, the devel release is "supported". And, the existing code forgot about ESM. Hence, fix the definition of stable by (a) including ESM, and (b) excluding devel.
1 parent 74575e1 commit b1c9026

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ubuntu_lint/context.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,4 +96,7 @@ def is_stable_release(self) -> bool:
9696
else:
9797
raise ValueError("missing required context, require changelog or changes")
9898

99-
return dist in distro_info.UbuntuDistroInfo().supported()
99+
di = distro_info.UbuntuDistroInfo()
100+
stable = set(di.supported() + di.supported_esm()) - set([di.devel()])
101+
102+
return dist in stable

0 commit comments

Comments
 (0)