forked from Imagelibrary/rtems
build: Report caching errors
The ctx.fatal() method uses an exception to stop the build. Do not catch it.
This commit is contained in:
2
wscript
2
wscript
@@ -1109,9 +1109,9 @@ def is_one_item_newer(ctx, path, mtime):
|
|||||||
def must_update_item_cache(ctx, path, cache_file):
|
def must_update_item_cache(ctx, path, cache_file):
|
||||||
try:
|
try:
|
||||||
mtime = os.path.getmtime(cache_file)
|
mtime = os.path.getmtime(cache_file)
|
||||||
return is_one_item_newer(ctx, path, mtime)
|
|
||||||
except:
|
except:
|
||||||
return True
|
return True
|
||||||
|
return is_one_item_newer(ctx, path, mtime)
|
||||||
|
|
||||||
|
|
||||||
def load_from_yaml(load, ctx, data_by_uid, base, path):
|
def load_from_yaml(load, ctx, data_by_uid, base, path):
|
||||||
|
|||||||
Reference in New Issue
Block a user