[gnome-software] snap: Stop using deprecated function
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] snap: Stop using deprecated function
- Date: Tue, 21 Jan 2020 09:45:24 +0000 (UTC)
commit 5cca7e8fb9e49fe128ca46c9ea4bbec78d3f33bc
Author: Robert Ancell <robert ancell canonical com>
Date: Tue Jan 21 16:49:27 2020 +1300
snap: Stop using deprecated function
meson.build | 2 +-
plugins/snap/gs-plugin-snap.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/meson.build b/meson.build
index c4b422f0..4421e440 100644
--- a/meson.build
+++ b/meson.build
@@ -186,7 +186,7 @@ if get_option('gudev')
endif
if get_option('snap')
- snap = dependency('snapd-glib', version : '>= 1.49')
+ snap = dependency('snapd-glib', version : '>= 1.50')
endif
gnome = import('gnome')
diff --git a/plugins/snap/gs-plugin-snap.c b/plugins/snap/gs-plugin-snap.c
index 9db1e86a..28392b79 100644
--- a/plugins/snap/gs-plugin-snap.c
+++ b/plugins/snap/gs-plugin-snap.c
@@ -1174,7 +1174,7 @@ gs_plugin_app_remove (GsPlugin *plugin,
return FALSE;
gs_app_set_state (app, AS_APP_STATE_REMOVING);
- if (!snapd_client_remove_sync (client, gs_app_get_metadata_item (app, "snap::name"), progress_cb,
app, cancellable, error)) {
+ if (!snapd_client_remove2_sync (client, SNAPD_REMOVE_FLAGS_NONE, gs_app_get_metadata_item (app,
"snap::name"), progress_cb, app, cancellable, error)) {
gs_app_set_state_recover (app);
snapd_error_convert (error);
return FALSE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]