summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Krzyszkowiak <dos@dosowisko.net>2020-11-30 02:57:25 +0100
committerRichard Hughes <richard@hughsie.com>2020-12-02 09:17:11 +0000
commitd4c076d4de12c4715c13dc47113d9d7afa25138b (patch)
treedc752b2af49cf411251aa87c5d6883ac50f89e24
parent8ac5b447b08a700897480224f5cab885a059ef1a (diff)
downloadappstream-glib-d4c076d4de12c4715c13dc47113d9d7afa25138b.tar.gz
as-app: Parse custom tags from DEP-11
-rw-r--r--libappstream-glib/as-app.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/libappstream-glib/as-app.c b/libappstream-glib/as-app.c
index f5c8614..293f0a0 100644
--- a/libappstream-glib/as-app.c
+++ b/libappstream-glib/as-app.c
@@ -5793,6 +5793,14 @@ as_app_node_parse_dep11 (AsApp *app, GNode *node,
}
continue;
}
+ if (g_strcmp0 (tmp, "Custom") == 0) {
+ for (c = n->children; c != NULL; c = c->next) {
+ as_app_add_metadata (app,
+ as_yaml_node_get_key (c),
+ as_yaml_node_get_value (c));
+ }
+ continue;
+ }
}
if (nonfatal_str != NULL) {
g_debug ("nonfatal warning from %s: %s",