xenserver / planex

RPM package and delivery
Other
18 stars 37 forks source link

prefer createrepo_c if available #464

Open cheese opened 7 years ago

cheese commented 7 years ago

createrepo_c is a faster and more maintained version than the original python implementation, a.k.a createrepo. Both provide compatible command line options.

createrepo_c is available in official CentOS 7 repo.

Planex has a heavy use of createrepo. createrepo_c will certainly imporve performance of planex.

And on Fedora 26 with planex 2.1.0, tmp repo created by Python 'createrepo' is not usable by the current version of dnf (dnf-2.7.5-1.fc26.noarch).

euanh commented 6 years ago

After we move to Python 3 we can use shutil.which() to test for the existence of createrepo_c. Without that it will be a bit uglier.

mseri commented 6 years ago

I'll postpone this to after the move to python3 then