Merge pull request #1786 from guludo/pr/fix-autoconfig

Set do_config as True if file is not found
This commit is contained in:
ita1024 2016-07-29 07:36:27 +02:00 committed by GitHub
commit 438595796b
1 changed files with 7 additions and 2 deletions

View File

@ -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'