From 4760cc252743c3f89889efc6a5b0b03191da2b67 Mon Sep 17 00:00:00 2001 From: Abderrahim Kitouni Date: Fri, 20 Dec 2024 20:53:57 +0100 Subject: [PATCH] sysupdate: Correctly notify that download completed Looking at the eos-updater plugin, the fact that the system is updated is signified by the UPDATABLE state, and a size of 0. This also makes it match the comment that says the state should be left as `updatable`. --- plugins/systemd-sysupdate/gs-plugin-systemd-sysupdate.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/systemd-sysupdate/gs-plugin-systemd-sysupdate.c b/plugins/systemd-sysupdate/gs-plugin-systemd-sysupdate.c index 68689f1bc..c7a09f667 100644 --- a/plugins/systemd-sysupdate/gs-plugin-systemd-sysupdate.c +++ b/plugins/systemd-sysupdate/gs-plugin-systemd-sysupdate.c @@ -991,7 +991,8 @@ gs_plugin_systemd_sysupdate_remove_job_apply (GsPluginSystemdSysupdate *self, gs_app_set_progress (data->app, GS_APP_PROGRESS_UNKNOWN); /* The `host` target should have its state left as `updatable`. */ if (target_is_host) { - gs_app_set_state (data->app, GS_APP_STATE_PENDING_INSTALL); + gs_app_set_state (data->app, GS_APP_STATE_UPDATABLE); + gs_app_set_size_download (data->app, GS_SIZE_TYPE_VALID, 0); } else { gs_app_set_state (data->app, GS_APP_STATE_INSTALLED); } -- GitLab