[gnome-software/wip/temp/ubuntu-xenial-rebased-corrected: 69/331] Show removed snaps as installable
- From: William Hua <williamhua src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/temp/ubuntu-xenial-rebased-corrected: 69/331] Show removed snaps as installable
- Date: Wed, 4 May 2016 14:04:18 +0000 (UTC)
commit a67c83fd4a741bdb271fe12e905a17ceb45a7f0a
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]