From d140210b4f662a1bff635e078d5bdee10cebdbb6 Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Thu, 14 Sep 2017 09:52:38 +0100 Subject: [PATCH] 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. --- src/fu-engine.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/fu-engine.c b/src/fu-engine.c index 7cdffff79..c0d2b0a3a 100644 --- a/src/fu-engine.c +++ b/src/fu-engine.c @@ -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) {