create repo file only if repodata exists.
otherwise yum fails