From f4bc652b3ae761a7d82dcff3b177b0d7601cec7e Mon Sep 17 00:00:00 2001 From: James Simpson Date: Wed, 9 Nov 2022 14:33:19 +0800 Subject: T4796: Prefer mix-in config over default config --- scripts/build-vyos-image | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'scripts') diff --git a/scripts/build-vyos-image b/scripts/build-vyos-image index 5242a7dd..c53a79e9 100755 --- a/scripts/build-vyos-image +++ b/scripts/build-vyos-image @@ -216,15 +216,15 @@ if __name__ == "__main__": ## Load the flavor file and mix-ins with open(make_toml_path(defaults.BUILD_TYPES_DIR, build_config["build_type"]), 'r') as f: build_type_config = toml.load(f) - build_config = merge_dicts(build_config, build_type_config) + build_config = merge_dicts(build_type_config, build_config) with open(make_toml_path(defaults.BUILD_ARCHES_DIR, build_config["architecture"]), 'r') as f: build_arch_config = toml.load(f) - build_config = merge_dicts(build_config, build_arch_config) + build_config = merge_dicts(build_arch_config, build_config) with open(make_toml_path(defaults.BUILD_FLAVORS_DIR, build_config["build_flavor"]), 'r') as f: flavor_config = toml.load(f) - build_config = merge_dicts(build_config, flavor_config) + build_config = merge_dicts(flavor_config, build_config) ## Rename and merge some fields for simplicity ## E.g. --custom-packages is for the user, but internally -- cgit v1.2.3