[gnome-software/wip/temp/ubuntu-xenial-rebased-corrected: 67/331] Actions return ACCEPTED, not OK



commit f710607c56bf50253c980474094709fb6a31f26d
Author: Robert Ancell <robert ancell canonical com>
Date:   Tue Feb 2 14:13:39 2016 +1300

    Actions return ACCEPTED, not OK

 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 38cd0a2..66f80a3 100644
--- a/src/plugins/gs-plugin-snappy.c
+++ b/src/plugins/gs-plugin-snappy.c
@@ -438,7 +438,7 @@ send_package_action (GsPlugin *plugin, const char *id, const gchar *action, GErr
        if (!send_snapd_request (socket, "POST", path, content, &status_code, &reason_phrase, &response_type, 
&response, NULL, error))
                return FALSE;
 
-       if (status_code != SOUP_STATUS_OK) {
+       if (status_code != SOUP_STATUS_ACCEPTED) {
                g_set_error (error,
                             GS_PLUGIN_ERROR,
                             GS_PLUGIN_ERROR_FAILED,


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