[gnome-software] updates section: trivial: Don't warn when cancelling update
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] updates section: trivial: Don't warn when cancelling update
- Date: Wed, 3 Oct 2018 14:21:57 +0000 (UTC)
commit 65f076bbcd9a6e510317060336c23215e232b433
Author: Kalev Lember <klember redhat com>
Date: Wed Oct 3 16:19:55 2018 +0200
updates section: trivial: Don't warn when cancelling update
src/gs-updates-section.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/gs-updates-section.c b/src/gs-updates-section.c
index 2403e6a8..c0e0137f 100644
--- a/src/gs-updates-section.c
+++ b/src/gs-updates-section.c
@@ -276,7 +276,8 @@ _perform_update_cb (GsPluginLoader *plugin_loader, GAsyncResult *res, gpointer u
/* get the results */
if (!gs_plugin_loader_job_action_finish (plugin_loader, res, &error)) {
- g_warning ("failed to perform update: %s", error->message);
+ if (!g_error_matches (error, GS_PLUGIN_ERROR, GS_PLUGIN_ERROR_CANCELLED))
+ g_warning ("failed to perform update: %s", error->message);
return;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]