def __init__(self, repo_url, base_path=None): RepodataBase.__init__(self, url=repo_url, base_path=base_path) self.index_file = 'Packages' self.path = os.path.normpath(os.path.join(self.base_path, self.repo_url.url.netloc, self.repo_url.url_suffix))
def __init__(self, **kwargs): kwargs.setdefault('dist_type', 'centos') RepodataBase.__init__(self, **kwargs) self.index_file = 'repodata/repomd.xml'