[virt-tools-list] [libosinfo 3/8] Set OsinfoOs::media for OSes stored in an OsinfoDb

Christophe Fergeau cfergeau at redhat.com
Mon Dec 3 11:23:32 UTC 2012


---
 osinfo/osinfo_os.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/osinfo/osinfo_os.c b/osinfo/osinfo_os.c
index 18a1458..9038566 100644
--- a/osinfo/osinfo_os.c
+++ b/osinfo/osinfo_os.c
@@ -426,6 +426,7 @@ void osinfo_os_add_media(OsinfoOs *os, OsinfoMedia *media)
     g_return_if_fail(OSINFO_IS_MEDIA(media));
 
     osinfo_list_add(OSINFO_LIST(os->priv->medias), OSINFO_ENTITY(media));
+    osinfo_media_set_os(media, os);
 }
 
 /**
-- 
1.8.0.1




More information about the virt-tools-list mailing list