[gnome-software] snap: Don't report a problem when no information available on not installed snaps



commit 780a15e421eea522205f35bb82bd51bb00f21c23
Author: Robert Ancell <robert ancell canonical com>
Date:   Tue Jul 5 14:34:27 2016 +1200

    snap: Don't report a problem when no information available on not installed snaps

 src/plugins/gs-plugin-snap.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/gs-plugin-snap.c b/src/plugins/gs-plugin-snap.c
index ab92912..0390b05 100644
--- a/src/plugins/gs-plugin-snap.c
+++ b/src/plugins/gs-plugin-snap.c
@@ -368,6 +368,9 @@ get_app (GsPlugin *plugin, GsApp *app, GCancellable *cancellable, GError **error
                               cancellable, 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]