From 3d280caf4adb869c5c4a160db846edba50ae7bfb Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Mon, 8 Apr 2019 11:10:50 +0100 Subject: [PATCH] Match the old or new version number when setting NEEDS_REBOOT Some devices update then need a reboot, and other reboot to update. --- src/fu-engine.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/fu-engine.c b/src/fu-engine.c index e6cf8b170..b1607113e 100644 --- a/src/fu-engine.c +++ b/src/fu-engine.c @@ -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 */