Commit 857c33de authored by Andreas Tille's avatar Andreas Tille

parse subgroups recursively

parent 2328a204
......@@ -49,7 +49,6 @@ BLACKLIST = [ 'bio-linux'
, 'website'
]
# FIXME: Debian Perl Group is listed with only 2 projects which is definitely wrong
# FIXME: Do not assume package name is path name on Salsa (-> there are pathes like "Cave Story NX")
# just start with one team
......@@ -135,6 +134,13 @@ def get_projects_of_subgroups(group):
for project in sprojects:
if project.name not in BLACKLIST :
more_projects.append(project)
# call recursively for subdirs
(sprojects, valid_subgroup_names) = get_projects_of_subgroups(real_group)
for project in sprojects:
if project.name not in BLACKLIST :
# reset group name to main group
project.namespace['name'] = group.name
more_projects.append(project)
return ( more_projects, valid_names )
# SALSA_TOKEN=os.environ['SALSA_TOKEN']
......@@ -166,6 +172,7 @@ for blend, gpath in sorted(BLENDSGROUPS.items()):
print("%i projects found in subgroups" % len(sprojects))
valid_group_names.extend(valid_subgroup_names)
projects.extend(sprojects)
source=''
for project in projects:
jdata = {}
name = project.name
......
Markdown is supported
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