repos: Option to generate recursive report w/o summary

On certain graphs, repeative topolgical sorting takes
too much time. So, we introduce an option to disable
the summary and produce all the required build
reports only.
This commit is contained in:
Ivan A. Melnikov 2023-08-14 11:53:58 +04:00
parent 8141ceb1ab
commit d040c3f6a4

View File

@ -390,7 +390,7 @@ def _src_name(source):
def recursive_build_report(from_repo, to_repo, *source_names,
ignore=(), ignore_sort=()):
ignore=(), ignore_sort=(), summary=True):
reports = []
build_source_deps = {}
pkg_source_deps = {}
@ -435,6 +435,9 @@ def recursive_build_report(from_repo, to_repo, *source_names,
dep_sources.add(b.source_name)
full_req[source] = dep_sources
if not summary:
return '\n'.join(reports)
cycles = []
while True:
try: