[gnome-software/wip/kalev/more-distro-upgrades: 2/9] update monitor: Don't warn when no upgrades are available
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/kalev/more-distro-upgrades: 2/9] update monitor: Don't warn when no upgrades are available
- Date: Mon, 15 Feb 2016 16:15:01 +0000 (UTC)
commit 2ef10fad9ce79b6404b1d55eb16d398a3168a481
Author: Kalev Lember <klember redhat com>
Date: Thu Feb 11 11:19:23 2016 +0100
update monitor: Don't warn when no upgrades 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 25eebb1..638619d 100644
--- a/src/gs-update-monitor.c
+++ b/src/gs-update-monitor.c
@@ -216,8 +216,13 @@ get_upgrades_finished_cb (GObject *object,
g_debug ("no upgrades; withdrawing upgrades-available notification");
g_application_withdraw_notification (monitor->application,
"upgrades-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 upgrades to show");
+ } else if (!g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED)) {
g_warning ("failed to get upgrades: %s", error->message);
+ }
return;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]