This series has been written considering: - https://www.redhat.com/archives/libosinfo/2019-February/msg00247.html - a similar patch will be done for medias Having a fallback or a simple "unknown" architecture type that will be treated as fallback is, indeed, something needed. In this patch series I've made sure that if we take this approach, we'll always consider the "unknown" as the last option to match in order to avoid distros patching osinfo-db on their side and having it clashing with the "unknown" definition we may have upstream. https://gitlab.com/libosinfo/libosinfo/issues/20 Fabiano Fidêncio (8): db: Rename tree to treeinfo in guess_os_from_tree() db: Rename os_* to os_treeinfo_* in guess_os_from_tree() db: Consider the tree arch when guessing an OS from tree db: Deal with "unknown" tree architectures test-db: Add test for guessing tree from OS db: Consider the media arch when guess an OS from media db: Deal with "unknown" media architecture test-db: Add test to cover identifying a media with "unknown" arch osinfo/osinfo_db.c | 137 +++++++++++++++--- .../dbdata/os/libosinfo.org/test-db-media.xml | 14 ++ tests/test-db.c | 78 ++++++++++ 3 files changed, 210 insertions(+), 19 deletions(-) -- 2.20.1 _______________________________________________ Libosinfo mailing list Libosinfo@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libosinfo