[gnome-software/gnome-3-30] 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/gnome-3-30] updates section: trivial: Don't warn when cancelling update
- Date: Wed, 3 Oct 2018 14:50:31 +0000 (UTC)
commit 47301bcd8810e0efec9057cb1a16569a1c9d4830
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 1228f2e1..8d9ed2e6 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]