2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-11-24 18:59:39 +01:00

Remove one Node class assumption in Task.py

Tasks cannot assume that additional dependency (deps_man) belong
to the same Node object class before obtaining their signatures
This commit is contained in:
Thomas Nagy 2017-08-12 16:31:51 +02:00
parent 194b6e85f5
commit 322f447e0a
No known key found for this signature in database
GPG Key ID: 49B4C67C05277AAA

View File

@ -735,10 +735,11 @@ class Task(TaskBase):
continue
for v in d:
if isinstance(v, bld.root.__class__):
try:
v = v.get_bld_sig()
elif hasattr(v, '__call__'):
v = v() # dependency is a function, call it
except AttributeError:
if hasattr(v, '__call__'):
v = v() # dependency is a function, call it
upd(v)
def sig_vars(self):