[Libosinfo] [libosinfo PATCH 09/11] loader: Deal with network-install resources

Fabiano Fidêncio fabiano at fidencio.org
Tue Jan 22 19:28:18 UTC 2019


Signed-off-by: Fabiano Fidêncio <fabiano at fidencio.org>
---
 osinfo/osinfo_loader.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/osinfo/osinfo_loader.c b/osinfo/osinfo_loader.c
index 9c2a757..a6f111c 100644
--- a/osinfo/osinfo_loader.c
+++ b/osinfo/osinfo_loader.c
@@ -1393,6 +1393,14 @@ static void osinfo_loader_resources_list(OsinfoLoader *loader,
     if (resources != NULL)
         osinfo_os_add_maximum_resources(os, resources);
 
+    g_clear_object(&resources);
+    resources = osinfo_loader_resources(loader, ctxt, root, id, "network-install", err);
+    if (error_is_set(err))
+        goto EXIT;
+
+    if (resources != NULL)
+        osinfo_os_add_network_install_resources(os, resources);
+
 EXIT:
     g_clear_object(&resources);
 }
-- 
1.8.3.1




More information about the Libosinfo mailing list