From b5077745a7ccb8fc7d6998c13a8eb322f4326c80 Mon Sep 17 00:00:00 2001 From: Dylan Van Assche Date: Sun, 30 Jan 2022 17:08:08 +0100 Subject: [PATCH] modem-manager: use version format from metadata Some modems use a plain string as version while others use a standardized version format. If such a format is provided by the metadata, set it. --- plugins/modem-manager/fu-mm-device.c | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/modem-manager/fu-mm-device.c b/plugins/modem-manager/fu-mm-device.c index e3f891d28..e12738f6a 100644 --- a/plugins/modem-manager/fu-mm-device.c +++ b/plugins/modem-manager/fu-mm-device.c @@ -1624,6 +1624,7 @@ fu_mm_device_init(FuMmDevice *self) fu_device_add_flag(FU_DEVICE(self), FWUPD_DEVICE_FLAG_USE_RUNTIME_VERSION); fu_device_add_flag(FU_DEVICE(self), FWUPD_DEVICE_FLAG_REQUIRE_AC); fu_device_add_internal_flag(FU_DEVICE(self), FU_DEVICE_INTERNAL_FLAG_REPLUG_MATCH_GUID); + fu_device_add_internal_flag(FU_DEVICE(self), FU_DEVICE_INTERNAL_FLAG_MD_SET_VERFMT); fu_device_set_version_format(FU_DEVICE(self), FWUPD_VERSION_FORMAT_PLAIN); fu_device_set_summary(FU_DEVICE(self), "Mobile broadband device"); fu_device_add_icon(FU_DEVICE(self), "network-modem");