[gnome-software/gnome-3-20] trivial: Set the update state of offline updates correctly



commit 5e2673d3466b29ab86f1d6cb42c9d22676d9b83c
Author: Richard Hughes <richard hughsie com>
Date:   Mon Apr 11 08:45:57 2016 +0100

    trivial: Set the update state of offline updates correctly

 src/plugins/gs-plugin-systemd-updates.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/gs-plugin-systemd-updates.c b/src/plugins/gs-plugin-systemd-updates.c
index 705f50d..84be358 100644
--- a/src/plugins/gs-plugin-systemd-updates.c
+++ b/src/plugins/gs-plugin-systemd-updates.c
@@ -142,7 +142,7 @@ gs_plugin_add_updates (GsPlugin *plugin,
                split = pk_package_id_split (package_ids[i]);
                gs_app_add_source (app, split[PK_PACKAGE_ID_NAME]);
                gs_app_set_update_version (app, split[PK_PACKAGE_ID_VERSION]);
-               gs_app_set_state (app, AS_APP_STATE_AVAILABLE);
+               gs_app_set_state (app, AS_APP_STATE_UPDATABLE);
                gs_app_set_kind (app, AS_APP_KIND_GENERIC);
                gs_plugin_add_app (list, app);
        }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]