Skip to content

Commit

Permalink
Merge pull request #897 from AlmaLinux/fix_issues
Browse files Browse the repository at this point in the history
Fix production issues
  • Loading branch information
Korulag authored Jul 3, 2024
2 parents 81f8a24 + e9b2b08 commit a984cdc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions alws/release_planner.py
Original file line number Diff line number Diff line change
Expand Up @@ -1824,6 +1824,9 @@ async def check_released_errata_packages(
)
albs_pkgs = albs_pkgs.scalars().all()

if not albs_pkgs:
return

# We assume that a release involves only one errata.
# If it is not the case, we need to check the errata record status
# of every errata_to_albs_packages and taking them into account when
Expand Down
5 changes: 4 additions & 1 deletion alws/utils/noarch.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,10 @@ async def save_noarch_packages(
debug_hrefs_to_add = [href for href, _ in debug_noarch_packages.values()]

for task in build_tasks:
if task.status in (BuildTaskStatus.FAILED, BuildTaskStatus.EXCLUDED):
if (
task.status in (BuildTaskStatus.FAILED, BuildTaskStatus.EXCLUDED)
or task.arch == 'src'
):
continue
noarch = copy.deepcopy(noarch_packages)
debug_noarch = copy.deepcopy(debug_noarch_packages)
Expand Down

0 comments on commit a984cdc

Please sign in to comment.