|
|
@ -1,6 +1,6 @@
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# preflight-checks.py
|
|
|
|
# preflight-checks.py
|
|
|
|
# Script to check for common issues prior to compiling
|
|
|
|
# Check for common issues prior to compiling
|
|
|
|
#
|
|
|
|
#
|
|
|
|
import os
|
|
|
|
import os
|
|
|
|
import re
|
|
|
|
import re
|
|
|
@ -25,6 +25,9 @@ def check_envs(build_env, base_envs, config):
|
|
|
|
return True
|
|
|
|
return True
|
|
|
|
ext = config.get(build_env, 'extends', default=None)
|
|
|
|
ext = config.get(build_env, 'extends', default=None)
|
|
|
|
if ext:
|
|
|
|
if ext:
|
|
|
|
|
|
|
|
if isinstance(ext, str):
|
|
|
|
|
|
|
|
return check_envs(ext, base_envs, config)
|
|
|
|
|
|
|
|
elif isinstance(ext, list):
|
|
|
|
for ext_env in ext:
|
|
|
|
for ext_env in ext:
|
|
|
|
if check_envs(ext_env, base_envs, config):
|
|
|
|
if check_envs(ext_env, base_envs, config):
|
|
|
|
return True
|
|
|
|
return True
|
|
|
|