trivial: Clear any device checksums after the online update

This commit is contained in:
Richard Hughes 2017-06-15 19:49:18 +01:00
parent b7bf715435
commit f556d371da

View File

@ -863,6 +863,7 @@ fu_plugin_runner_update (FuPlugin *plugin,
g_autoptr(FuPending) pending = NULL;
g_autoptr(FwupdResult) res_pending = NULL;
GError *error_update = NULL;
GPtrArray *checksums;
/* not enabled */
if (!priv->enabled)
@ -907,6 +908,10 @@ fu_plugin_runner_update (FuPlugin *plugin,
return FALSE;
}
/* no longer valid */
checksums = fu_device_get_checksums (device);
g_ptr_array_set_size (checksums, 0);
/* cleanup */
if (res_pending != NULL) {
const gchar *tmp;