]> git.proxmox.com Git - fwupd.git/commitdiff
trivial: Do not inherit history from emulated devices
authorRichard Hughes <richard@hughsie.com>
Mon, 30 Jan 2023 14:46:39 +0000 (14:46 +0000)
committerRichard Hughes <richard@hughsie.com>
Mon, 30 Jan 2023 15:12:06 +0000 (15:12 +0000)
src/fu-engine.c

index 28e4c4a82e0eb9ca1f3f4f592d37655d15d937c6..e057d7632644b1b82b12c14eba9144f83b08c859 100644 (file)
@@ -6269,6 +6269,10 @@ fu_engine_device_inherit_history(FuEngine *self, FuDevice *device)
 {
        g_autoptr(FuDevice) device_history = NULL;
 
+       /* ignore */
+       if (fu_device_has_flag(device, FWUPD_DEVICE_FLAG_EMULATED))
+               return;
+
        /* any success or failed update? */
        device_history = fu_history_get_device_by_id(self->history, fu_device_get_id(device), NULL);
        if (device_history == NULL)