[Libosinfo] [PATCHv2 1/4] Fix relations that osinfo_platform_get_all_devices follows

Christophe Fergeau cfergeau at redhat.com
Wed Apr 3 15:47:45 UTC 2013


We want to consider both platforms that are upgraded from
(qemu 1.2.0 -> qemu 1.2.1) and derived from
(qemu 1.2.0 -> qemu-kvm 1.2.0). Should have been part of commit
da20e3a
---
 osinfo/osinfo_platform.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/osinfo/osinfo_platform.c b/osinfo/osinfo_platform.c
index a7b72eb..1a2d803 100644
--- a/osinfo/osinfo_platform.c
+++ b/osinfo/osinfo_platform.c
@@ -133,7 +133,8 @@ OsinfoDeviceList *osinfo_platform_get_all_devices(OsinfoPlatform *platform,
     };
 
     osinfo_product_foreach_related(OSINFO_PRODUCT(platform),
-                                   OSINFO_PRODUCT_FOREACH_FLAG_UPGRADES,
+                                   OSINFO_PRODUCT_FOREACH_FLAG_UPGRADES |
+                                   OSINFO_PRODUCT_FOREACH_FLAG_DERIVES_FROM,
                                    get_all_devices_cb,
                                    &foreach_data);
 
-- 
1.8.1.4




More information about the Libosinfo mailing list