[gnome-settings-daemon] updates: do not log a warning at startup if getting the upgrade list is not supported



commit 92283af6cf196a6b408d018e57380847c75d7257
Author: Richard Hughes <richard hughsie com>
Date:   Sat Aug 27 15:46:19 2011 +0100

    updates: do not log a warning at startup if getting the upgrade list is not supported
    
    This fixes https://bugzilla.gnome.org/show_bug.cgi?id=657483

 plugins/updates/gsd-updates-manager.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/plugins/updates/gsd-updates-manager.c b/plugins/updates/gsd-updates-manager.c
index db6db32..ac8feeb 100644
--- a/plugins/updates/gsd-updates-manager.c
+++ b/plugins/updates/gsd-updates-manager.c
@@ -142,8 +142,11 @@ get_distro_upgrades_finished_cb (GObject *object,
         /* get the results */
         results = pk_client_generic_finish (PK_CLIENT(client), res, &error);
         if (results == NULL) {
-                g_warning ("failed to get upgrades: %s",
-                           error->message);
+                if (error->domain != PK_CLIENT_ERROR ||
+                    error->code != PK_CLIENT_ERROR_NOT_SUPPORTED) {
+                        g_warning ("failed to get upgrades: %s",
+                                   error->message);
+                }
                 g_error_free (error);
                 goto out;
         }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]