Skip to content

Commit

Permalink
Fix production issues
Browse files Browse the repository at this point in the history
Fix issue with noarch in 'src' task
Fix issue with empty errata pkgs in release commit
  • Loading branch information
maccelf committed Jul 2, 2024
1 parent 81f8a24 commit e9b2b08
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 e9b2b08

Please sign in to comment.