queue: show the potential build types when no build status is known yet

This commit is contained in:
Christoph Reiter
2022-09-06 08:50:18 +02:00
parent 38a613d628
commit 9ea74da0eb

View File

@@ -527,9 +527,13 @@ def get_build_status(srcinfo: SrcInfoPackage, repo_list: Set[str] = set()) -> Li
)
if not results:
key = "unknown"
results.append(
PackageBuildStatus(key, get_status_text(key), "", {}, get_status_category(key)))
build_types = set()
for repo in repo_list:
build_types.update(repo_to_builds(repo))
for build in sorted(build_types):
key = "unknown"
results.append(
PackageBuildStatus(build, get_status_text(key), "", {}, get_status_category(key)))
return results