[gnome-software] fedora-distro-upgrades: Use the release notes for the upgrade help



commit c6abd62e2fabae85dc925b5a138578c46027894a
Author: Richard Hughes <richard hughsie com>
Date:   Fri Apr 15 10:26:50 2016 +0100

    fedora-distro-upgrades: Use the release notes for the upgrade help

 src/plugins/gs-plugin-fedora-distro-upgrades.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/gs-plugin-fedora-distro-upgrades.c b/src/plugins/gs-plugin-fedora-distro-upgrades.c
index c41a36d..d85dd44 100644
--- a/src/plugins/gs-plugin-fedora-distro-upgrades.c
+++ b/src/plugins/gs-plugin-fedora-distro-upgrades.c
@@ -233,6 +233,7 @@ gs_plugin_add_distro_upgrades (GsPlugin *plugin,
                DistroInfo *distro_info = g_ptr_array_index (plugin->priv->distros, i);
                g_autofree gchar *app_id = NULL;
                g_autofree gchar *app_version = NULL;
+               g_autofree gchar *url = NULL;
                g_autoptr(GsApp) app = NULL;
 
                /* only interested in upgrades to the same distro */
@@ -254,6 +255,13 @@ gs_plugin_add_distro_upgrades (GsPlugin *plugin,
                gs_app_set_state (app, AS_APP_STATE_AVAILABLE);
                gs_app_set_name (app, GS_APP_QUALITY_LOWEST, distro_info->name);
                gs_app_set_version (app, app_version);
+
+               /* just use the release notes */
+               url = g_strdup_printf ("https://docs.fedoraproject.org/en-US/";
+                                      "Fedora/%i/html/Release_Notes/",
+                                      distro_info->version);
+               gs_app_set_url (app, AS_URL_KIND_HOMEPAGE, url);
+
                gs_plugin_add_app (list, app);
        }
 


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