summaryrefslogtreecommitdiff
path: root/scripts/build-config
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2018-06-08 21:19:16 +0200
committerDaniil Baturin <daniil@baturin.org>2018-06-08 21:19:16 +0200
commit8bc62d4d7d6caa55a2f764082665e64e9bd46001 (patch)
treec1df57bd891c00625673c0a5adb253495a795c65 /scripts/build-config
parent82d7ddb1b34e36fa399fd333efc716add8bf341a (diff)
downloadvyos-build-8bc62d4d7d6caa55a2f764082665e64e9bd46001.tar.gz
vyos-build-8bc62d4d7d6caa55a2f764082665e64e9bd46001.zip
Use os.makedirs instead of distutils stuff, make the configure script more verbose, pretty print build-config.json
Diffstat (limited to 'scripts/build-config')
-rwxr-xr-xscripts/build-config8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/build-config b/scripts/build-config
index a18e95ee..27a6c7ba 100755
--- a/scripts/build-config
+++ b/scripts/build-config
@@ -30,7 +30,6 @@ import os
import getpass
import platform
import json
-import distutils.dir_util
import defaults
@@ -115,7 +114,8 @@ if env_check_retval > 0:
# Save to file
-distutils.dir_util.mkpath(defaults.BUILD_DIR)
-
+os.makedirs(defaults.BUILD_DIR, exist_ok=True)
+print("Saving the build config to {0}".format(defaults.BUILD_CONFIG))
with open(defaults.BUILD_CONFIG, 'w') as f:
- json.dump(args, f)
+ json.dump(args, f, indent=4, sort_keys=True)
+ print("\n", file=f)