[PATCHv2 1/4] Fix relations that osinfo_platform_get_all_devices follows

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

_______________________________________________
Libosinfo mailing list
Libosinfo@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libosinfo




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux