Improve comment around unsupported prior release

It turns out that this also properly deals with Beta branches that are
past the Launch Phase, so this updates the comment to note that this is
the expected behavior here.

Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
This commit is contained in:
Stephen Gallagher 2024-11-20 12:23:12 -05:00
parent 30bc612ab5
commit f1f890aa96

View file

@ -643,9 +643,10 @@ def determine_rhel_state(
# Determine which phase the prior release is in: # Determine which phase the prior release is in:
prior_release_phase = phase_lookup[prior_release_branch] prior_release_phase = phase_lookup[prior_release_branch]
# If the prior release is in the Unsupported Phase, it probably means # If the prior release is in the Unsupported Phase, it either means
# that we're dealing with an EOL CentOS Stream (like 8.10). We need # that we're dealing with an EOL CentOS Stream (like 8.10) or else
# to use the stream rules in this case. # the prior release was a Beta which is past the Launch Phase. We
# need to use the stream rules in this case.
prior_is_eol = bool(prior_release_phase == pp_phase_unsupported) prior_is_eol = bool(prior_release_phase == pp_phase_unsupported)
if not prior_is_eol: if not prior_is_eol: