[Libosinfo] [libosinfo PATCH v2 0/8] Use "all" arch as a fallback for media/tree detection
Fabiano Fidêncio
fidencio at redhat.com
Thu Mar 28 21:26:06 UTC 2019
This series has been written considering:
- https://www.redhat.com/archives/libosinfo/2019-February/msg00247.html
Let's assume that trees and medias set with architecture "all" will be
treated as fallback, always.
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 "all" 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 "all" media architecture
test-db: Add test to cover identifying a media with "unknown" arch
osinfo/osinfo_db.c | 184 ++++++++++++------
.../dbdata/os/libosinfo.org/test-db-media.xml | 14 ++
.../dbdata/os/libosinfo.org/test-db-tree.xml | 25 +++
tests/test-db.c | 78 ++++++++
4 files changed, 237 insertions(+), 64 deletions(-)
create mode 100644 tests/dbdata/os/libosinfo.org/test-db-tree.xml
--
2.20.1
More information about the Libosinfo
mailing list