From 046c55a97ec3b397994f9f1c0c85a796ca116322 Mon Sep 17 00:00:00 2001 From: Thomas Nagy Date: Tue, 28 Oct 2014 22:15:52 +0100 Subject: [PATCH] Issue 1506 --- waflib/Task.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/waflib/Task.py b/waflib/Task.py index 4c7be4af..5b267ddb 100644 --- a/waflib/Task.py +++ b/waflib/Task.py @@ -729,12 +729,14 @@ class Task(TaskBase): try: if prev == self.compute_sig_implicit_deps(): return prev - except Exception: + except Errors.TaskNotReady: + raise + except IOError: # when a file was renamed (IOError usually), remove the stale nodes (headers in folders without source files) # this will break the order calculation for headers created during the build in the source directory (should be uncommon) # the behaviour will differ when top != out for x in bld.node_deps.get(self.uid(), []): - if x.is_child_of(bld.srcnode): + if not x.is_bld(): try: os.stat(x.abspath()) except OSError: