C implementation of createrepo
