示例#1
0
    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))
示例#2
0
 def __init__(self, **kwargs):
     kwargs.setdefault('dist_type', 'centos')
     RepodataBase.__init__(self, **kwargs)
     self.index_file = 'repodata/repomd.xml'