trivial: Do not assume updates fail by default

We have the property notification in place now so that the update state
is saved correctly to the database on error.

This helps with debugging as we don't need to explain (to ourselves?!)
why the device is marked as failed even though nothing has run.
This commit is contained in:
Richard Hughes 2021-07-30 16:08:03 +01:00
parent 944ba87b59
commit a52de99813

View File

@ -2439,7 +2439,6 @@ fu_engine_install_release (FuEngine *self,
if (tmp != NULL)
fwupd_release_add_checksum (release_tmp, tmp);
fwupd_release_set_version (release_tmp, version_rel);
fu_device_set_update_state (device, FWUPD_UPDATE_STATE_FAILED);
if (!fu_history_add_device (self->history, device, release_tmp, error))
return FALSE;
}