mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-18 03:32:19 +00:00
trivial: Do not inherit history from emulated devices
This commit is contained in:
parent
5f8d465e9b
commit
4f3aad86e9
@ -6269,6 +6269,10 @@ fu_engine_device_inherit_history(FuEngine *self, FuDevice *device)
|
|||||||
{
|
{
|
||||||
g_autoptr(FuDevice) device_history = NULL;
|
g_autoptr(FuDevice) device_history = NULL;
|
||||||
|
|
||||||
|
/* ignore */
|
||||||
|
if (fu_device_has_flag(device, FWUPD_DEVICE_FLAG_EMULATED))
|
||||||
|
return;
|
||||||
|
|
||||||
/* any success or failed update? */
|
/* any success or failed update? */
|
||||||
device_history = fu_history_get_device_by_id(self->history, fu_device_get_id(device), NULL);
|
device_history = fu_history_get_device_by_id(self->history, fu_device_get_id(device), NULL);
|
||||||
if (device_history == NULL)
|
if (device_history == NULL)
|
||||||
|
Loading…
Reference in New Issue
Block a user