This series makes osinfo-detect to behave in the very same way for both
medias and trees when those have a variant set.

With the patches the tree detection of a Fedora Server tree will look
like:
fidencio@laerte ~/src/upstream/libosinfo $ ./tools/osinfo-detect --type=tree 
https://ftp.fau.de/fedora/linux/releases/29/Server/x86_64/os
Tree is an installer for OS 'Fedora 29 Server'

https://gitlab.com/libosinfo/libosinfo/issues/25

Fabiano Fidêncio (3):
  db: Set the os to the detected tree
  media,image,tree: Avoid critical errors when getting the os variants
  osinfo-detect: Be aware of tree's os variants

 osinfo/osinfo_db.c    |  4 +++-
 osinfo/osinfo_image.c |  4 ++++
 osinfo/osinfo_media.c |  4 ++++
 osinfo/osinfo_tree.c  |  4 ++++
 tools/osinfo-detect.c | 30 +++++++++++++++++++++++++++++-
 5 files changed, 44 insertions(+), 2 deletions(-)

-- 
2.20.1

_______________________________________________
Libosinfo mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/libosinfo

Reply via email to