mirror of
https://gitlab.com/ita1024/waf.git
synced 2024-11-26 11:51:20 +01:00
Set do_config as True if file is not found
Instead of leaving the user with an error due to FileNotFoundError exception.
This commit is contained in:
parent
954594bf07
commit
8c4401637a
@ -592,8 +592,13 @@ def autoconfigure(execute_method):
|
||||
else:
|
||||
h = 0
|
||||
for f in env.files:
|
||||
h = Utils.h_list((h, Utils.readf(f, 'rb')))
|
||||
do_config = h != env.hash
|
||||
try:
|
||||
h = Utils.h_list((h, Utils.readf(f, 'rb')))
|
||||
except FileNotFoundError:
|
||||
do_config = True
|
||||
break
|
||||
else:
|
||||
do_config = h != env.hash
|
||||
|
||||
if do_config:
|
||||
cmd = env.config_cmd or 'configure'
|
||||
|
Loading…
Reference in New Issue
Block a user