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



commit d385f6ed37f64682061abc78039ce3f6f7c2b0f1
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]