mirror of
https://github.com/openSUSE/osc.git
synced 2025-04-15 10:58:04 +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:
commit
e958ce4328
@ -3975,7 +3975,7 @@ def get_repos_of_project(apiurl: str, prj: str):
|
|||||||
|
|
||||||
project_obj = obs_api.Project.from_api(apiurl, prj)
|
project_obj = obs_api.Project.from_api(apiurl, prj)
|
||||||
for repo in project_obj.repository_list or []:
|
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)
|
yield Repo(repo.name, arch)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user