Commit c6340e33 authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

ordered_projects: provide deps

parent d27ae6dd
Pipeline #8996 passed with stage
in 7 minutes and 42 seconds
......@@ -1200,4 +1200,12 @@ def ordered_projects():
for old, new in switch:
lst[old], lst[new] = lst[new], lst[old]
return lst
def get_deps(cat, pkg, ns, lst):
with (settings.RAINBOARD_RPKG / cat / pkg / 'Makefile').open() as file_handle:
cont =
deps = [dep_pkg for dep_cat, dep_pkg, _ in lst if f'\ninclude ../../{dep_cat}/{dep_pkg}/\n' in cont]
if pkg.startswith('py-') and (cat, pkg[3:], ns) in lst:
return list(set(deps))
return [[cat, pkg, ns, get_deps(cat, pkg, ns, lst)] for cat, pkg, ns in lst]
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment