[gnome-software] Drop the unsightly '(Nightly)' prefix on xdg-app bundles



commit 8cec1f28ffdccb26d31cc294613fa8dbc2557e5a
Author: Richard Hughes <richard hughsie com>
Date:   Wed Feb 17 16:27:22 2016 +0000

    Drop the unsightly '(Nightly)' prefix on xdg-app bundles

 src/plugins/gs-plugin-appstream.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/gs-plugin-appstream.c b/src/plugins/gs-plugin-appstream.c
index 831025c..9ea8954 100644
--- a/src/plugins/gs-plugin-appstream.c
+++ b/src/plugins/gs-plugin-appstream.c
@@ -567,6 +567,8 @@ gs_plugin_refine_item (GsPlugin *plugin, GsApp *app, AsApp *item, GError **error
        /* set name */
        tmp = as_app_get_name (item, NULL);
        if (tmp != NULL) {
+               if (g_str_has_prefix (tmp, "(Nightly) "))
+                       tmp += 10;
                gs_app_set_name (app, GS_APP_QUALITY_HIGHEST, tmp);
        }
 


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