special case of files created in the source directory in combination with update_outputs

This commit is contained in:
Thomas Nagy 2013-12-18 23:21:34 +01:00
parent 2048f0fb89
commit d2fcc7b7be
1 changed files with 8 additions and 1 deletions

View File

@ -1101,9 +1101,17 @@ def update_outputs(cls):
prev_sig = bld.task_sigs[self.uid()]
if prev_sig == self.signature():
for x in self.outputs:
if not x.is_child_of(bld.bldnode):
# special case of files created in the source directory
# hash them here for convenience -_-
x.sig = Utils.h_file(x.abspath())
if not x.sig or bld.task_sigs[x.abspath()] != self.uid():
return RUN_ME
return SKIP_ME
except OSError:
pass
except IOError:
pass
except KeyError:
pass
except IndexError:
@ -1115,4 +1123,3 @@ def update_outputs(cls):
return cls