[api] do not depend on metadata order from createrepo