[gnome-software] fwupd: Override the device generic data with the actual release data



commit e3d2395c912d3bb0329dbc7378db4faeea7fae8f
Author: Richard Hughes <richard hughsie com>
Date:   Mon Jun 8 16:37:17 2020 +0100

    fwupd: Override the device generic data with the actual release data
    
    This fixes the UI showing 'Intel Management Engine' rather than what was
    specified in the firmware metadata provided by the OEM.
    
    This only happens when double clicking on the .cab file, rather than when
    downloaded from remotes like the LVFS.

 plugins/fwupd/gs-plugin-fwupd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/plugins/fwupd/gs-plugin-fwupd.c b/plugins/fwupd/gs-plugin-fwupd.c
index 15e2b4b6..ae673c9c 100644
--- a/plugins/fwupd/gs-plugin-fwupd.c
+++ b/plugins/fwupd/gs-plugin-fwupd.c
@@ -290,8 +290,8 @@ gs_plugin_fwupd_new_app_from_device (GsPlugin *plugin, FwupdDevice *dev)
        as_icon_set_kind (icon, AS_ICON_KIND_STOCK);
        as_icon_set_name (icon, "application-x-firmware");
        gs_app_add_icon (app, icon);
-       gs_fwupd_app_set_from_release (app, rel);
        gs_fwupd_app_set_from_device (app, dev);
+       gs_fwupd_app_set_from_release (app, rel);
 
        if (fwupd_release_get_appstream_id (rel) != NULL)
                gs_app_set_id (app, fwupd_release_get_appstream_id (rel));


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