[gnome-software/wip/temp/ubuntu-xenial-rebased-corrected: 258/331] Check snaps for "available" status



commit dc0826edfd2032f2cec26cacfd4cad8ba5fc51c6
Author: William Hua <william hua canonical com>
Date:   Sun Apr 17 20:38:02 2016 -0400

    Check snaps for "available" status

 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 b3636a4..329d563 100644
--- a/src/plugins/gs-plugin-snappy.c
+++ b/src/plugins/gs-plugin-snappy.c
@@ -107,7 +107,7 @@ refine_app (GsPlugin *plugin, GsApp *app, JsonObject *package)
                size = json_object_get_int_member (package, "download-size");
                if (size > 0)
                        gs_app_set_state (app, AS_APP_STATE_AVAILABLE);
-       } else if (g_strcmp0 (status, "not installed") == 0) {
+       } else if (g_strcmp0 (status, "not installed") == 0 || g_strcmp0 (status, "available") == 0) {
                gs_app_set_state (app, AS_APP_STATE_AVAILABLE);
                size = json_object_get_int_member (package, "download-size");
        }


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