projects.py: Protect against null-string dependencies

A dependency of the form run = a, b, (trailing comma) led to the attempt
to build an empty project and, hence, infinite recursion

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2018-10-22 20:02:48 +00:00
commit f7db38275f

View file

@ -435,6 +435,9 @@ def add_modules_from_project_txt(buf, visited, spec, section, key, add_self, sco
subscope = 2
deps = deps.split(',')
for dep in deps:
dep = dep.strip()
if not(len(dep)):
continue
add_modules_from_project_txt_cached(buf, visited, dep,
section, key, add_self=True, scope=subscope,
names_only=names_only)