Currently we've installer-scripts set for OSes and a single OS may have different medias which only part of them actually support installation via install-scripts. This is the case, for instance, with Fedora where Live medias do not support installation scripts. In order to give the apps a proper way to check whether a specific media supports or not the install scripts, let's have this new boolean attribute set for each of the medias. The 'installer-script' attribute is intended to be "true" by default on every OS that has support for install-scripts. The XML will look like: <os> <media arch="x86_64" installer-script="false"> ... </media> <media arch="x86_64"> .. </media> <installer> <script id='http://foo.bar/distro/foobar/desktop'/> </installer> </os> In the scenario above the first media shouldn't be used for installation using scripts while the second should. - osinfo-db: Fabiano Fidêncio (1): schema: Add installer-script attribute to medias data/schema/osinfo.rng.in | 5 +++++ 1 file changed, 5 insertions(+) - libosinfo: Fabiano Fidêncio (4): loader: Deal with "installer-script" media attribute media: Add _supports_installer_script() tests: Add basic tests for OsinfoMedia test-media: Add tests for OsinfoMedia attributes .gitignore | 1 + osinfo/libosinfo.syms | 2 + osinfo/osinfo_loader.c | 9 ++ osinfo/osinfo_media.c | 65 ++++++++- osinfo/osinfo_media.h | 2 + tests/Makefile.am | 5 + .../test-os-media-no-installer.xml | 13 ++ .../dbdata/os/libosinfo.org/test-os-media.xml | 17 +++ tests/test-media.c | 134 ++++++++++++++++++ 9 files changed, 247 insertions(+), 1 deletion(-) create mode 100644 tests/dbdata/os/libosinfo.org/test-os-media-no-installer.xml create mode 100644 tests/dbdata/os/libosinfo.org/test-os-media.xml create mode 100644 tests/test-media.c -- 2.19.1 _______________________________________________ Libosinfo mailing list Libosinfo@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libosinfo