[gnome-software] snap: Use snapd_client_install2_sync now we depend on recent version of snapd-glib



commit e244eac8c6530940a6af34d8dba4cfdf71dae5a2
Author: Robert Ancell <robert ancell canonical com>
Date:   Thu Jul 6 17:02:54 2017 +1200

    snap: Use snapd_client_install2_sync now we depend on recent version of snapd-glib

 plugins/snap/gs-plugin-snap.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/snap/gs-plugin-snap.c b/plugins/snap/gs-plugin-snap.c
index 741e3dc..930a0ec 100644
--- a/plugins/snap/gs-plugin-snap.c
+++ b/plugins/snap/gs-plugin-snap.c
@@ -582,7 +582,7 @@ gs_plugin_app_install (GsPlugin *plugin,
        client = get_client (plugin, cancellable, error);
        if (client == NULL)
                return FALSE;
-       if (!snapd_client_install_sync (client, gs_app_get_id (app), NULL, progress_cb, app, cancellable, 
&local_error)) {
+       if (!snapd_client_install2_sync (client, SNAPD_INSTALL_FLAGS_NONE, gs_app_get_id (app), NULL, NULL, 
progress_cb, app, cancellable, &local_error)) {
                if (g_error_matches (local_error, SNAPD_ERROR, SNAPD_ERROR_AUTH_DATA_REQUIRED)) {
                        g_set_error_literal (error,
                                             GS_PLUGIN_ERROR,


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