trivial: Fix up the hex version numbers when adding to the store

This means we show the 'human readable' version numbers in the debug UI.
This commit is contained in:
Richard Hughes 2017-09-14 09:52:38 +01:00
parent bd4d2856dd
commit d140210b4f

View File

@ -1445,6 +1445,12 @@ fu_engine_add_component_to_store (FuEngine *self, AsApp *app)
AsApp *app_old = as_store_get_app_by_id (self->store, as_app_get_id (app));
GPtrArray *releases = as_app_get_releases (app);
/* possibly convert the version from 0x to dotted */
fu_engine_vendor_quirk_release_version (app);
/* possibly convert the flashed provide to a GUID */
fu_engine_vendor_fixup_provide_value (app);
/* the app does not already exist */
if (app_old == NULL) {
as_store_add_app (self->store, app);
@ -1747,12 +1753,6 @@ fu_engine_get_updates_item_update (FuEngine *self, FuDeviceItem *item)
if (app == NULL)
return FALSE;
/* possibly convert the version from 0x to dotted */
fu_engine_vendor_quirk_release_version (app);
/* possibly convert the flashed provide to a GUID */
fu_engine_vendor_fixup_provide_value (app);
/* get latest release */
release = as_app_get_release_default (app);
if (release == NULL) {