[gnome-software/gnome-3-20] trivial: Don't emit a warning when no updates are available
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/gnome-3-20] trivial: Don't emit a warning when no updates are available
- Date: Tue, 5 Jul 2016 15:50:11 +0000 (UTC)
commit 08904329a078741c8cd1c9a1f406c8e3b013d1e3
Author: Kalev Lember <klember redhat com>
Date: Tue Jul 5 17:45:08 2016 +0200
trivial: Don't emit a warning when no updates are available
src/gs-update-monitor.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/gs-update-monitor.c b/src/gs-update-monitor.c
index dc7d8ca..e9ba06f 100644
--- a/src/gs-update-monitor.c
+++ b/src/gs-update-monitor.c
@@ -166,8 +166,13 @@ get_updates_finished_cb (GObject *object,
g_debug ("no updates; withdrawing updates-available notification");
g_application_withdraw_notification (monitor->application,
"updates-available");
- if (!g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED))
+ if (g_error_matches (error,
+ GS_PLUGIN_LOADER_ERROR,
+ GS_PLUGIN_LOADER_ERROR_NO_RESULTS)) {
+ g_debug ("no updates to show");
+ } else if (!g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED)) {
g_warning ("failed to get updates: %s", error->message);
+ }
return;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]