summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2016-08-10 15:55:07 +0100
committerRichard Hughes <richard@hughsie.com>2016-08-10 16:03:37 +0100
commitc9c05176886453c8b7d904bd29caa7c8a04e9dbf (patch)
tree640d228a4283d7be5aec0c19164865fe33bbd428
parent2eb08ca8d57dca6279ce747f351e37f1bbfa2608 (diff)
downloadappstream-glib-c9c05176886453c8b7d904bd29caa7c8a04e9dbf.tar.gz
trivial: Don't add a duplicate <developer_name> when it exists already
This is _optionally_ translated.
-rw-r--r--client/as-util.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/client/as-util.c b/client/as-util.c
index c5899ed..ff7e9b1 100644
--- a/client/as-util.c
+++ b/client/as-util.c
@@ -295,6 +295,8 @@ as_util_convert_appdata (GFile *file_input,
/* add <developer_name> */
n2 = as_node_find (n, "_developer_name");
+ if (n2 == NULL)
+ n2 = as_node_find (n, "developer_name");
if (n2 == NULL) {
n3 = as_node_find (n, "project_group");
if (n3 != NULL) {