mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-06 06:27:58 +00:00
Match the old or new version number when setting NEEDS_REBOOT
Some devices update then need a reboot, and other reboot to update.
This commit is contained in:
parent
8fc8985224
commit
3d280caf4a
@ -1563,7 +1563,8 @@ fu_engine_install (FuEngine *self,
|
||||
fu_device_set_update_state (device, FWUPD_UPDATE_STATE_NEEDS_REBOOT);
|
||||
if ((flags & FWUPD_INSTALL_FLAG_NO_HISTORY) == 0 &&
|
||||
!fu_history_modify_device (self->history, device,
|
||||
FU_HISTORY_FLAGS_MATCH_OLD_VERSION,
|
||||
FU_HISTORY_FLAGS_MATCH_OLD_VERSION |
|
||||
FU_HISTORY_FLAGS_MATCH_NEW_VERSION,
|
||||
error))
|
||||
return FALSE;
|
||||
/* success */
|
||||
|
Loading…
Reference in New Issue
Block a user