From 56c981c56e4075711f4998952c558546cecac3a6 Mon Sep 17 00:00:00 2001 From: "Ivan A. Melnikov" Date: Wed, 20 Oct 2021 13:21:58 +0400 Subject: [PATCH] recursive_build_report: Show what to_repo has --- port_stats/repos.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/port_stats/repos.py b/port_stats/repos.py index 6f6b415..efd16f4 100644 --- a/port_stats/repos.py +++ b/port_stats/repos.py @@ -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)