def __init__(self, **kwargs): VersionFetcher.__init__(self, **kwargs) self.command = 'koji' if 'options' in kwargs: options = kwargs['options'] if 'command' in options: self.command = options['command']
def __init__(self, **kwargs): VersionFetcher.__init__(self, **kwargs) if 'options' in kwargs: options = kwargs['options'] if 'regex' in options: self.regex = options['regex'] if not options or 'url_base' not in options: raise ValueError("'url_base' option not supplied to cnucnu " "fetcher.") self.url_base = options['url_base']
def __init__(self, **kwargs): VersionFetcher.__init__(self, **kwargs) if 'options' not in kwargs: raise ValueError("options argument not supplied to repoquery " "fetcher. 'repo_base' option is required.") if 'paths' not in kwargs: raise ValueError("paths argument not supplied to repoquery " "fetcher.") options = kwargs['options'] if not options or 'repo_base' not in options: raise ValueError("'repo_base' option not supplied to repoquery " "fetcher.") self.paths = kwargs['paths'] self.repo_base = options['repo_base']
def __init__(self, **kwargs): VersionFetcher.__init__(self, **kwargs) if 'options' not in kwargs: raise ValueError("options argument not supplied to git fetcher. " "'repo_base' option is required.") if 'paths' not in kwargs: raise ValueError("paths argument not supplied to git fetcher.") options = kwargs['options'] if not options or 'repo_base' not in options: raise ValueError("'repo_base' option not supplied to git fetcher.") if not options or 'id' not in options: raise RuntimeError("'id' option not supplied to git fetcher. " "verwatch is supposed to supply this internally.") self.paths = kwargs['paths'] self.repo_base = options['repo_base'] # 'id' is supplied by verwatch self.repo_base_dir = "%s/%s/%s" % (self.paths.cache_dir, self.name, options['id']) if not os.path.isdir(self.repo_base_dir): os.makedirs(self.repo_base_dir) self.cmd = None
def __init__(self, **kwargs): VersionFetcher.__init__(self, **kwargs) self.cache = {}