sorting yum/dnf metadata and metadata diffs

Tomas Mlcoch tmlcoch at redhat.com
Fri Feb 13 08:35:59 UTC 2015


> How feasible would it be to keep the listings in primary.xml and
> filelists.xml sorted by package name and arch? Doing so could open the door
> to simple and efficient diffs of repository metadata.

Createrepo_c [1] keeps packages sorted by filename [2] by default.
Sorting based on filenames was chosen intentionally, a package basename
usually consists of name-version-release.arch - so the sorting is more
deterministic than just name and arch.
 
Tomas


[1] https://github.com/Tojaj/createrepo_c
[2] https://github.com/Tojaj/createrepo_c/blob/master/src/createrepo_c.c#L111


More information about the devel mailing list