[gnome-software] trivial: Do not warn when using unknown AppData tags
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] trivial: Do not warn when using unknown AppData tags
- Date: Tue, 26 Nov 2013 08:23:34 +0000 (UTC)
commit 7f440100f8c6249f87d0e67bf3e9b451273fb87b
Author: Richard Hughes <richard hughsie com>
Date: Mon Nov 25 09:23:18 2013 +0000
trivial: Do not warn when using unknown AppData tags
It's XML afterall...
src/plugins/gs-plugin-appdata.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/plugins/gs-plugin-appdata.c b/src/plugins/gs-plugin-appdata.c
index fe9260d..d844562 100644
--- a/src/plugins/gs-plugin-appdata.c
+++ b/src/plugins/gs-plugin-appdata.c
@@ -291,8 +291,10 @@ appdata_parse_text_cb (GMarkupParseContext *context,
tmp = appstream_xml_unmunge (text, text_len);
if (tmp == NULL)
break;
- g_warning ("AppData: unknown data '%s' is '%s'",
- appstream_tag_to_string (helper->tag), tmp);
+ if (helper->tag != APPSTREAM_TAG_UNKNOWN) {
+ g_warning ("AppData: unknown data '%s' is '%s'",
+ appstream_tag_to_string (helper->tag), tmp);
+ }
break;
}
g_free (tmp);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]