@robert-ancell
Copy link
Contributor

In the firmware documentation it states that runtime firmware has a file, and flashed firmware has a GUID.

In as_component_yaml_emit_provides() the following code seems to have this reversed:

if (fw_runtime != NULL) {
        for (i = 0; i < fw_runtime->len; i++) {
                const gchar *value = g_ptr_array_index (fw_runtime, i);
                as_yaml_mapping_start (emitter);
                        as_yaml_emit_entry (emitter, "type", "runtime");
                as_yaml_emit_entry (emitter, "guid", value);
                        as_yaml_mapping_end (emitter);
        }       
}

if (fw_flashed != NULL) {
        for (i = 0; i < fw_flashed->len; i++) {
                const gchar *value = g_ptr_array_index (fw_flashed, i);
                as_yaml_mapping_start (emitter);
                        as_yaml_emit_entry (emitter, "type", "flashed");
                as_yaml_emit_entry (emitter, "file", value);
                        as_yaml_mapping_end (emitter);
        }
}

Is the YAML code wrong?