Re: sorting yum/dnf metadata and metadata diffs

2015-02-13 Thread Marcin Juszkiewicz
On 13.02.2015 08:11, Casey Jao wrote: 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. Something like pdiffs in Debian? Those two are by far the

Re: sorting yum/dnf metadata and metadata diffs

2015-02-13 Thread Daniel Mach
Hi, there's been some work in progress already: https://bugzilla.redhat.com/show_bug.cgi?id=850896 Proof-of-concept code (to be merged into dnf/createrepo_c in the future): https://github.com/Tojaj/DeltaRepo The idea behind that is simple: * create deltas as small repos on server * download

Re: sorting yum/dnf metadata and metadata diffs

2015-02-13 Thread Tomas Mlcoch
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

sorting yum/dnf metadata and metadata diffs

2015-02-12 Thread Casey Jao
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. I recently ran some quick tests using python and elementtree. While the F21 primary.xml files from 2/7