[gnome-software] Never try to modify the application name
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] Never try to modify the application name
- Date: Thu, 21 Jul 2016 14:47:46 +0000 (UTC)
commit 47921f110fa7fb5e4769560ca09378a75f6a490c
Author: Richard Hughes <richard hughsie com>
Date: Thu Jul 21 15:47:24 2016 +0100
Never try to modify the application name
Resolves half of: https://bugzilla.gnome.org/show_bug.cgi?id=769039
src/plugins/gs-appstream.c | 8 +-------
1 files changed, 1 insertions(+), 7 deletions(-)
---
diff --git a/src/plugins/gs-appstream.c b/src/plugins/gs-appstream.c
index a2a9e1f..aa26b55 100644
--- a/src/plugins/gs-appstream.c
+++ b/src/plugins/gs-appstream.c
@@ -511,14 +511,8 @@ gs_appstream_refine_app (GsPlugin *plugin,
/* set name */
tmp = as_app_get_name (item, NULL);
- if (tmp != NULL) {
- if (g_str_has_prefix (tmp, "(Nightly) ")) {
- tmp += 10;
- if (gs_app_get_metadata_item (app, "X-XdgApp-Tags") == NULL)
- gs_app_set_metadata (app, "X-XdgApp-Tags", "nightly");
- }
+ if (tmp != NULL)
gs_app_set_name (app, GS_APP_QUALITY_HIGHEST, tmp);
- }
/* set summary */
tmp = as_app_get_comment (item, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]