[gnome-software/wip/rancell/snapd-glib] Fix bad merge



commit cfd04389fa0b4b4302ac1469b012082618ba2d46
Author: Robert Ancell <robert ancell canonical com>
Date:   Fri Feb 3 14:33:07 2017 +1300

    Fix bad merge

 src/plugins/gs-plugin-snap.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/plugins/gs-plugin-snap.c b/src/plugins/gs-plugin-snap.c
index 64b1667..1e6c9bd 100644
--- a/src/plugins/gs-plugin-snap.c
+++ b/src/plugins/gs-plugin-snap.c
@@ -245,12 +245,12 @@ gs_plugin_url_to_app (GsPlugin *plugin,
        client = get_client (plugin, cancellable, error);
        if (client == NULL)
                return FALSE;
-       snaps = snapd_client_find_sync (client, SNAPD_FIND_FLAGS_MATCH_NAME, path, cancellable, NULL);
+       snaps = snapd_client_find_sync (client, SNAPD_FIND_FLAGS_MATCH_NAME, path, NULL, cancellable, NULL);
        if (snaps == NULL || snaps->len < 1)
                return TRUE;
 
        snap = snaps->pdata[0];
-       app = gs_app_new (json_object_get_string_member (snap, "name"));
+       app = gs_app_new (snapd_snap_get_name (snap));
        gs_app_set_scope (app, AS_APP_SCOPE_SYSTEM);
        gs_app_set_bundle_kind (app, AS_BUNDLE_KIND_SNAP);
        gs_app_set_management_plugin (app, "snap");


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