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 43d6363177
commit 28846d6f34
No known key found for this signature in database
GPG Key ID: 49B4C67C05277AAA
1 changed files with 4 additions and 3 deletions

View File

@ -710,10 +710,11 @@ class Task(evil):
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):