1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-08 22:06:16 +01:00

Fix iterating through arch_list in core.get_repos_of_project()

This commit is contained in:
Daniel Mach 2024-08-15 08:37:58 +02:00
parent d8bfd4521e
commit 70839d1d40

View File

@ -3975,7 +3975,7 @@ def get_repos_of_project(apiurl: str, prj: str):
project_obj = obs_api.Project.from_api(apiurl, prj)
for repo in project_obj.repository_list or []:
for arch in repo.arch_list:
for arch in repo.arch_list or []:
yield Repo(repo.name, arch)