modifyrepo_c: Sort repomd records before dump.
authorTomas Mlcoch <tmlcoch@redhat.com>
Tue, 15 Oct 2013 10:29:57 +0000 (12:29 +0200)
committerTomas Mlcoch <tmlcoch@redhat.com>
Tue, 15 Oct 2013 10:29:57 +0000 (12:29 +0200)
src/modifyrepo_shared.c

index 9e39c0e..a6dd7fa 100644 (file)
@@ -297,6 +297,7 @@ cr_modifyrepo(GSList *modifyrepotasks, gchar *repopath, GError **err)
     g_slist_free(repomdrecords);
 
     // Write repomd.xml
+    cr_repomd_sort_records(repomd);
     gchar *repomd_xml = cr_xml_dump_repomd(repomd, NULL);
     g_debug("Generated repomd.xml:\n%s", repomd_xml);