diff options
author | David Robillard <d@drobilla.net> | 2022-08-15 21:27:15 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-08-15 21:27:15 -0400 |
commit | d31901a8af7bf765129975d37c5df261db2dd1fb (patch) | |
tree | 21ef9e2f32d985d4a58dcbf8a3e57b23d3a689a5 | |
parent | 23b83d0f44332b7e2c280e8c2d7eed89a8623a22 (diff) | |
download | lv2site-d31901a8af7bf765129975d37c5df261db2dd1fb.tar.xz |
Scan hosts consistently with features and port types
-rwxr-xr-x | scripts/update_host_compatibility.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/update_host_compatibility.py b/scripts/update_host_compatibility.py index 84898b0..1a245e8 100755 --- a/scripts/update_host_compatibility.py +++ b/scripts/update_host_compatibility.py @@ -144,7 +144,7 @@ def run(lv2_path, data_filenames, out): for data_filename in data_filenames: graph.load(data_filename, format="turtle") - hosts = list(graph.subjects(rdf.type, compat.Host)) + hosts = sorted(list(graph.subjects(rdf.type, compat.Host))) features = sorted(list(graph.subjects(rdf.type, lv2.Feature))) port_types = sorted(list(graph.subjects(rdfs.subClassOf, lv2.Port))) @@ -164,7 +164,7 @@ def run(lv2_path, data_filenames, out): else: row.append(_spec_link(feature)) - for host in graph.subjects(rdf.type, compat.Host): + for host in hosts: if _host_implements_feature(graph, host, feature): row.append('<span class="success">Yes</span>') else: @@ -180,7 +180,7 @@ def run(lv2_path, data_filenames, out): for port_type in port_types: with RowContext(out) as row: row.append(_spec_link(port_type)) - for host in graph.subjects(rdf.type, compat.Host): + for host in hosts: if (host, compat.supportsPortType, port_type) in graph: row.append('<span class="success">Yes</span>') else: |