diff options
author | Daniil Baturin <daniil@baturin.org> | 2015-12-25 18:28:27 -0500 |
---|---|---|
committer | Daniil Baturin <daniil@baturin.org> | 2015-12-25 18:28:27 -0500 |
commit | 595d17abea232345cf4475206363de7c379c3211 (patch) | |
tree | 7c1d312af13a784db35926670f156720c346ed7b /scripts/build-config | |
parent | c0cae8b7fec0d5e8a7c8ff9418397587e967fd15 (diff) | |
download | vyos-build-595d17abea232345cf4475206363de7c379c3211.tar.gz vyos-build-595d17abea232345cf4475206363de7c379c3211.zip |
Initial support for pbuilder.
Note: pbuilder --create does not work well with relative build path,
base.tgz creation fails.
This led to the build_dir path being absolute.
Perhaps we should make it more granular and only use absolute paths for
pbuilder options.
Diffstat (limited to 'scripts/build-config')
-rwxr-xr-x | scripts/build-config | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/build-config b/scripts/build-config index f04dcb3f..e001ef3d 100755 --- a/scripts/build-config +++ b/scripts/build-config @@ -51,6 +51,13 @@ if (args['debian_mirror'] != defaults.DEBIAN_MIRROR) and \ (args['pbuilder_debian_mirror'] == defaults.DEBIAN_MIRROR): args['pbuilder_debian_mirror'] = args['debian-mirror'] +# Populate some defaults that are not configurable, +# but that are handy to have in the options hash +args['distribution'] = defaults.DEBIAN_DISTRIBUTION +args['build_dir'] = os.path.join(os.getcwd(), defaults.BUILD_DIR) +args['pbuilder_config'] = defaults.PBUILDER_CONFIG + + # Save to file distutils.dir_util.mkpath(defaults.BUILD_DIR) |