[gnome-software/1878-failure-to-get-updates-in-one-plugin-skips-other-plugins] packagekit: Ignore errors when getting updates
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/1878-failure-to-get-updates-in-one-plugin-skips-other-plugins] packagekit: Ignore errors when getting updates
- Date: Fri, 26 Aug 2022 14:25:58 +0000 (UTC)
commit a566b8cf8fbfc713555769805bd38d42bc9668b6
Author: Milan Crha <mcrha redhat com>
Date: Fri Aug 26 15:30:07 2022 +0200
packagekit: Ignore errors when getting updates
Do not pass errors to the caller, only print them into the verbose log,
to not block updates from the other plugins.
Helps https://gitlab.gnome.org/GNOME/gnome-software/-/issues/1878
plugins/packagekit/gs-plugin-packagekit.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/plugins/packagekit/gs-plugin-packagekit.c b/plugins/packagekit/gs-plugin-packagekit.c
index 85f941648..b089f4508 100644
--- a/plugins/packagekit/gs-plugin-packagekit.c
+++ b/plugins/packagekit/gs-plugin-packagekit.c
@@ -814,7 +814,10 @@ gs_plugin_add_updates (GsPlugin *plugin,
GCancellable *cancellable,
GError **error)
{
- return gs_plugin_packagekit_add_updates (plugin, list, cancellable, error);
+ g_autoptr(GError) local_error = NULL;
+ if (!gs_plugin_packagekit_add_updates (plugin, list, cancellable, &local_error))
+ g_debug ("Failed to get updates: %s", local_error->message);
+ return TRUE;
}
static void list_apps_cb (GObject *source_object,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]