mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 03:53:32 +01:00
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:
parent
a00941feb8
commit
f7db38275f
1 changed files with 3 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue