def __init__(self, cfg, ui): PackageSource.__init__(self, cfg, ui) self._api = prism_rest_client.open(self._cfg.pkgcacheUri, verify=False) self._loaded = False self._cfg.synthesizeSources = False
def __init__(self, cfg, ui): PackageSource.__init__(self, cfg, ui) self._api = prism_rest_client.open(self._cfg.pkgcacheUri) self._loaded = False self._cfg.synthesizeSources = False
def PackageSource(cfg, ui): """ Method that returns an instance of the appropriate package source backend based on config data. """ if cfg.repositoryFormat == 'yum': return YumSource(cfg, ui) elif cfg.repositoryFormat == 'artifactory': return PomSource(cfg, ui) else: raise UnsupportedRepositoryError(repo=cfg.repositoryFormat, supported=['artifactory', 'yum'])
def __init__(self, cfg, ui, path=None): PackageSource.__init__(self, cfg, ui) self._path = path