Skip to content

Commit

Permalink
Fix incorrect repo names in find_release_repos func
Browse files Browse the repository at this point in the history
  • Loading branch information
anfimovdm committed Oct 23, 2024
1 parent 4fb4ee6 commit 0471fdd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion alws/release_planner.py
Original file line number Diff line number Diff line change
Expand Up @@ -907,7 +907,7 @@ def __init__(self, db: AsyncSession):
self.base_platform = None
self.clean_base_dist_name_lower = None
self.repo_name_regex = re.compile(
r"\w+-\d-(beta-|)(?P<name>\w+(-\w+)?)"
r"\w+-\d+-(beta-|)(?P<name>\w+(-\w+)?)"
)
self._beholder_client = BeholderClient(settings.beholder_host)

Expand Down Expand Up @@ -1267,6 +1267,7 @@ def generate_key(beta: bool) -> BeholderKey:
# in cases if we try to find debug repos by non debug name
if is_debug and not repo_name.endswith("debuginfo"):
repo_name += "-debuginfo"
repo_name = re.search(self.repo_name_regex, repo_name).groupdict()['name']
release_repo_name = "-".join((
self.clean_base_dist_name_lower,
self.base_platform.distr_version,
Expand Down

0 comments on commit 0471fdd

Please sign in to comment.