[gnome-software/wip/ubuntu: 5/5] Fix failure refining first snap doesn't affect other snaps



commit 0c571f15334fc5e16b27e268cec393f9042426a3
Author: Robert Ancell <robert ancell canonical com>
Date:   Fri Sep 23 14:05:25 2016 +1200

    Fix failure refining first snap doesn't affect other snaps

 src/plugins/gs-plugin-snappy.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/gs-plugin-snappy.c b/src/plugins/gs-plugin-snappy.c
index fbbb656..7941448 100644
--- a/src/plugins/gs-plugin-snappy.c
+++ b/src/plugins/gs-plugin-snappy.c
@@ -269,6 +269,9 @@ get_app (GsPlugin *plugin, GsApp *app, GError **error)
        if (!send_snapd_request ("GET", path, NULL, TRUE, NULL, TRUE, NULL, &status_code, &reason_phrase, 
&response_type, &response, NULL, error))
                return FALSE;
 
+       if (status_code == SOUP_STATUS_NOT_FOUND)
+               return TRUE;
+
        if (status_code != SOUP_STATUS_OK) {
                g_set_error (error,
                             GS_PLUGIN_ERROR,


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