[gnome-software/wip/temp/ubuntu-xenial-rebased: 72/329] Show removed snaps as installable
- From: Iain Lane <iainl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/temp/ubuntu-xenial-rebased: 72/329] Show removed snaps as installable
- Date: Fri, 29 Apr 2016 13:51:23 +0000 (UTC)
commit 6a3096b756c33e5499cd6818b6faa1140b423ec6
Author: Robert Ancell <robert ancell canonical com>
Date: Tue Feb 2 20:54:55 2016 +1300
Show removed snaps as installable
src/plugins/gs-plugin-snappy.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/gs-plugin-snappy.c b/src/plugins/gs-plugin-snappy.c
index 23a8a16..d6f649d 100644
--- a/src/plugins/gs-plugin-snappy.c
+++ b/src/plugins/gs-plugin-snappy.c
@@ -304,7 +304,7 @@ get_apps (GsPlugin *plugin, GList **list, AppFilterFunc filter_func, gpointer us
gs_app_set_state (app, AS_APP_STATE_INSTALLED);
gs_app_set_size (app, json_object_get_int_member (package, "installed_size"));
}
- else if (g_strcmp0 (status, "not installed") == 0) {
+ else if (g_strcmp0 (status, "not installed") == 0 || g_strcmp0 (status, "removed") == 0) {
gs_app_set_state (app, AS_APP_STATE_AVAILABLE);
gs_app_set_size (app, json_object_get_int_member (package, "download_size"));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]