Limit fast_partial.py failures on configuration tests

This commit is contained in:
Thomas Nagy 2019-06-25 11:53:00 +02:00
parent 173f410e3f
commit b7a6114ac7
1 changed files with 8 additions and 3 deletions

View File

@ -400,12 +400,17 @@ def is_stale(self):
Logs.debug('rev_use: must post %r because this is a clean build')
return True
# 3. check if the configuration changed
if os.stat(self.bld.bldnode.find_node('c4che/build.config.py').abspath()).st_mtime > dbstat:
# 3.a check if the configuration exists
cache_node = self.bld.bldnode.find_node('c4che/build.config.py')
if not cache_node:
return True
# 3.b check if the configuration changed
if os.stat(cache_node.abspath()).st_mtime > dbstat:
Logs.debug('rev_use: must post %r because the configuration has changed', self.name)
return True
# 3.a any tstamp data?
# 3.c any tstamp data?
try:
f_deps = self.bld.f_deps
except AttributeError: