diff options
author | Daniil Baturin <daniil@baturin.org> | 2017-08-21 18:49:34 -0400 |
---|---|---|
committer | Daniil Baturin <daniil@baturin.org> | 2017-08-21 18:49:34 -0400 |
commit | ac391c82d1f0c8d380e31386472c5aec563d9e56 (patch) | |
tree | 7229d7728b4e6be11dbf75c253dbe0a14b3c2724 /scripts | |
parent | f4518abe2e61fb8bdeeb38bd15a2bee8e603eaa1 (diff) | |
download | vyos-build-ac391c82d1f0c8d380e31386472c5aec563d9e56.tar.gz vyos-build-ac391c82d1f0c8d380e31386472c5aec563d9e56.zip |
T361: check the build environment setup in ./configure before it can even get to make.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/build-config | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/build-config b/scripts/build-config index 9ea92e1f..ae8501e8 100755 --- a/scripts/build-config +++ b/scripts/build-config @@ -97,6 +97,11 @@ args['distribution'] = defaults.DEBIAN_DISTRIBUTION args['build_dir'] = os.path.join(os.getcwd(), defaults.BUILD_DIR) args['pbuilder_config'] = defaults.PBUILDER_CONFIG +# Check the build environment and dependencies +env_check_retval = os.system("scripts/check-build-env") +if env_check_retval > 0: + print("Build environment check failed, fix the issues and retry") + # Save to file distutils.dir_util.mkpath(defaults.BUILD_DIR) |