Skip to content

Commit

Permalink
mergerepo_c and modifyrepo_c now make "pretty" indented xml by default
Browse files Browse the repository at this point in the history
closes #413
  • Loading branch information
dralley committed Feb 6, 2024
1 parent f5b5cb3 commit 7b7c368
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/mergerepo_c.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
6 changes: 6 additions & 0 deletions src/modifyrepo_shared.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7b7c368

Please sign in to comment.