createrepo logic