From 84955b3feae17cfd50792dc743ca539f9e6db5d2 Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Sep 20 2024 18:38:02 +0000 Subject: Fix detection of releases in Maintenance Phase Signed-off-by: Stephen Gallagher --- diff --git a/src/centpkg/utils.py b/src/centpkg/utils.py index 317b202..45649d3 100644 --- a/src/centpkg/utils.py +++ b/src/centpkg/utils.py @@ -612,6 +612,7 @@ def determine_rhel_state( prior_release_branch = format_branch( x_version, active_y_version - 1, is_beta=False ) + current_release_branch = format_branch(x_version, active_y_version, is_beta=False) logger.debug("Prior release branch: {}".format(prior_release_branch)) @@ -624,12 +625,16 @@ def determine_rhel_state( if branch_exists: # The branch is there, so work on the active Y-stream, which is always - # in DevTestDoc Phase - phase = pp_phase_devtestdoc + # in either DevTestDoc Phase or Maintenance Phase (in the case of an + # end-of-life CentOS Stream) + phase = phase_lookup[current_release_branch] check_tickets_branch = cs_branch rhel_target_default = "latest" - enforcing = False target_version = latest_version + if phase == pp_phase_maintenance: + enforcing = True + else: + enforcing = False else: # The branch is not present, so we'll work on the prior Y-stream check_tickets_branch = prior_release_branch