2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-12-23 09:45:13 +01:00

Enable rules mixing functions with scriptlets

This commit is contained in:
Thomas Nagy 2015-10-01 19:25:29 +02:00
parent 0e76f676be
commit 201b8ac38f
No known key found for this signature in database
GPG Key ID: 67A565EDFDF90E64

View File

@ -1081,9 +1081,13 @@ def compile_fun(line, shell=False):
dvars_lst = []
funs_lst = []
for x in line:
if isinstance(x, str):
fun, dvars = compile_fun(x, shell)
dvars_lst += dvars
funs_lst.append(fun)
else:
# assume a function to let through
funs_lst.append(x)
def composed_fun(task):
for x in funs_lst:
ret = x(task)