summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2018-08-31 15:05:32 +0900
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2018-08-31 15:05:32 +0900
commit775d3fca114aff1785d2593c7fc485d215217e75 (patch)
treee89fbb791ff7c893a7b38fe55d113298a3ddcff7
parent95121148b94682ddec0f3f4de7f330fae0c75285 (diff)
downloadbuildstream-775d3fca114aff1785d2593c7fc485d215217e75.tar.gz
_project.py: Adding FIXME comment to address #591 properly
-rw-r--r--buildstream/_project.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/buildstream/_project.py b/buildstream/_project.py
index e94892751..2f8ae69fb 100644
--- a/buildstream/_project.py
+++ b/buildstream/_project.py
@@ -398,7 +398,13 @@ class Project():
"Project requested format version {}, but BuildStream {}.{} only supports up until format version {}"
.format(format_version, major, minor, BST_FORMAT_VERSION))
- # Check if project.conf contains name key field
+ # FIXME:
+ #
+ # Performing this check manually in the absense
+ # of proper support from _yaml.node_get(), this should
+ # be removed in favor of a proper accessor function
+ # from the _yaml module when #591 is fixed.
+ #
if self._project_conf.get('name') is None:
raise LoadError(LoadErrorReason.INVALID_DATA,
"{}: project.conf does not contain expected key '{}'".format(projectfile, 'name'))