From: Arfrever Frehtes Taifersar Arahesis Date: Mon, 24 Jun 2013 22:02:39 +0000 (+0200) Subject: portage.repository.config.RepoConfigLoader: Add __contains__(). X-Git-Tag: v2.2.0_alpha186~13 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e2130cb7d85c62070a7f8dd4cc1eac848aa126a8;p=portage.git portage.repository.config.RepoConfigLoader: Add __contains__(). --- diff --git a/pym/portage/repository/config.py b/pym/portage/repository/config.py index 3d88f4851..1923b7ed5 100644 --- a/pym/portage/repository/config.py +++ b/pym/portage/repository/config.py @@ -806,6 +806,9 @@ class RepoConfigLoader(object): for repo_name in self.prepos_order: yield self.prepos[repo_name] + def __contains__(self, repo_name): + return repo_name in self.prepos + def load_repository_config(settings): #~ repoconfigpaths = [os.path.join(settings.global_config_path, "repos.conf")] repoconfigpaths = []