C implementation of the createrepo.