Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ TBD
* Add ability to set custom fusermount path
* Support setting state-dir for run
* Default to builddir true for cmake and cmake-ninja buildsystems
* Handle case-insensitive YAML boolean and null scalars

Changes in 1.4.6
================
Expand Down
12 changes: 9 additions & 3 deletions src/builder-utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -400,17 +400,23 @@ parse_yaml_node_to_json (yaml_document_t *doc, yaml_node_t *node)
scalar = (gchar *) node->data.scalar.value;
if (node->data.scalar.style == YAML_PLAIN_SCALAR_STYLE)
{
if (strcmp (scalar, "true") == 0)
if (strcmp (scalar, "true") == 0 ||
strcmp (scalar, "True") == 0 ||
strcmp (scalar, "TRUE") == 0)
{
json_node_init_boolean (json, TRUE);
break;
}
else if (strcmp (scalar, "false") == 0)
else if (strcmp (scalar, "false") == 0 ||
strcmp (scalar, "False") == 0 ||
strcmp (scalar, "FALSE") == 0)
{
json_node_init_boolean (json, FALSE);
break;
}
else if (strcmp (scalar, "null") == 0)
else if (strcmp (scalar, "null") == 0 ||
strcmp (scalar, "Null") == 0 ||
strcmp (scalar, "NULL") == 0)
{
json_node_init_null (json);
break;
Expand Down