diff options
author | Jonathan Maw <jonathan.maw@codethink.co.uk> | 2017-12-14 15:10:47 +0000 |
---|---|---|
committer | Jonathan Maw <jonathan.maw@codethink.co.uk> | 2017-12-14 15:10:47 +0000 |
commit | 993acc96c21e32063fc2cb5e75b8a9f5c8d4ca5e (patch) | |
tree | 15a91757bd9abf95d7f09465e00615c74bbac98f /buildstream/_project.py | |
parent | 5898b9168f212c6f492ad0ffbc51617b51c38c11 (diff) | |
download | buildstream-jonathan/fix-plugin-loading.tar.gz |
project: Rename required-project-version to format-versionjonathan/fix-plugin-loading
Diffstat (limited to 'buildstream/_project.py')
-rw-r--r-- | buildstream/_project.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/buildstream/_project.py b/buildstream/_project.py index d340fb989..e48690bff 100644 --- a/buildstream/_project.py +++ b/buildstream/_project.py @@ -128,7 +128,7 @@ class Project(): config.pop('elements', None) _yaml.node_final_assertions(config) _yaml.node_validate(config, [ - 'required-project-version', + 'format-version', 'element-path', 'variables', 'environment', 'environment-nocache', 'split-rules', 'elements', 'plugins', @@ -179,7 +179,7 @@ class Project(): self._workspaces = self._load_workspace_config() # Assert project version - format_version = _yaml.node_get(config, int, 'required-project-version', default_value=0) + format_version = _yaml.node_get(config, int, 'format-version', default_value=0) if BST_FORMAT_VERSION < format_version: major, minor = utils.get_bst_version() raise LoadError( |