recursive_build_report: Show what to_repo has

This commit is contained in:
Ivan A. Melnikov 2021-10-20 13:21:58 +04:00
parent 166cd3125b
commit 56c981c56e

View File

@ -375,7 +375,11 @@ def recursive_build_report(from_repo, to_repo, *source_names,
while stack:
cur = stack.pop()
report = _raw_build_report(from_repo, to_repo, cur, ignore)
reports.append(format_triplet_report(report, cur.decode()))
cur_in_to = to_repo.binaries.get(cur)
cur_source_srpm = cur_in_to.source_rpm if cur_in_to else b'NONE'
reports.append('\n== %s ==\n%s has %s\n' % (
cur.decode(), to_repo.name, cur_source_srpm.decode()))
reports.append(format_triplet_report(report))
# find all sources in the report
bld_deps = set(p.source_name for k, _d, p in report if k == _BUILDREQ)