[gnome-software] Show the distro version in error message when a system upgrade fails



commit 0c271ef6e76f1f51f0ffc5a2c7a3288eed246dd3
Author: Kalev Lember <klember redhat com>
Date:   Thu May 26 11:42:34 2016 +0200

    Show the distro version in error message when a system upgrade fails

 src/gs-common.c |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/src/gs-common.c b/src/gs-common.c
index 2b1ff32..29a6673 100644
--- a/src/gs-common.c
+++ b/src/gs-common.c
@@ -177,10 +177,14 @@ gs_app_notify_failed_modal (GsApp *app,
                                        gs_app_get_name (app));
                break;
        case GS_PLUGIN_LOADER_ACTION_UPGRADE_DOWNLOAD:
+       {
+               g_autofree gchar *name_version = g_strdup_printf ("%s %s",
+                                                                 gs_app_get_name (app),
+                                                                 gs_app_get_version (app));
                /* TRANSLATORS: this is when the upgrade download fails */
-               g_string_append_printf (msg, _("Upgrade to %s failed."),
-                                       gs_app_get_name (app));
+               g_string_append_printf (msg, _("Upgrade to %s failed."), name_version);
                break;
+       }
        default:
                g_assert_not_reached ();
                break;


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