def find_module_version(self, repo_module_dict): """ Find module that matches self.module_spec in given repo_module_dict. Return (RepoModuleVersion, ModuleForm). """ result = (None, None) for module_form in self.get_module_form_possibilities(): module_version = repo_module_dict.find_module_version( module_form.name, module_form.stream, module_form.version, module_form.context, module_form.arch) if module_version: result = (module_version, module_form) break if not result[0]: raise NoModuleException(self.module_spec) return result
def run_on_module(self): module_specs = self.base.repo_module_dict.upgrade( self.opts.module_spec, True) if module_specs: raise NoModuleException(", ".join(module_specs))
def run_on_module(self): module_specs = self.base.repo_module_dict.install( self.opts.module_spec, self.base.conf.strict) if module_specs: raise NoModuleException(", ".join(module_specs))
def run_on_module(self): module_specs = self.module_base.upgrade(self.opts.module_spec) if module_specs: raise NoModuleException(", ".join(module_specs))