1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-03-30 20:03:06 +02:00

Merge pull request #1608 from dmach/fix-arch_list-in-get_repos_of_project

Fix iterating through arch_list in core.get_repos_of_project()
This commit is contained in:
Daniel Mach 2024-08-20 10:44:28 +02:00 committed by GitHub
commit e958ce4328
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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)