diff --git a/src/mergerepo_c.c b/src/mergerepo_c.c index 0d532428..eab1a9fa 100644 --- a/src/mergerepo_c.c +++ b/src/mergerepo_c.c @@ -875,6 +875,10 @@ dump_merged_metadata(GHashTable *merged_hashtable, { GError *tmp_err = NULL; + // Set up XML dump parameters + + cr_xml_dump_init(); + // Create/Open output xml files cr_ContentStat *pri_stat = cr_contentstat_new(CR_CHECKSUM_SHA256, NULL); diff --git a/src/modifyrepo_shared.c b/src/modifyrepo_shared.c index 7c7becdb..233bb03c 100644 --- a/src/modifyrepo_shared.c +++ b/src/modifyrepo_shared.c @@ -149,6 +149,12 @@ cr_modifyrepo(GSList *modifyrepotasks, gchar *repopath, GError **err) return FALSE; } + // Set up XML dump parameters + + cr_xml_dump_init(); + + // Dump repomd.xml + cr_Repomd *repomd = cr_repomd_new(); int rc = cr_xml_parse_repomd(repomd_path, repomd, cr_warning_cb, "Repomd XML parser", err);