From 4f3aad86e9c57356c34760dea20d15108f478609 Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Mon, 30 Jan 2023 14:46:39 +0000 Subject: [PATCH] trivial: Do not inherit history from emulated devices --- src/fu-engine.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/fu-engine.c b/src/fu-engine.c index 28e4c4a82..e057d7632 100644 --- a/src/fu-engine.c +++ b/src/fu-engine.c @@ -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)