From e2130cb7d85c62070a7f8dd4cc1eac848aa126a8 Mon Sep 17 00:00:00 2001 From: Arfrever Frehtes Taifersar Arahesis Date: Tue, 25 Jun 2013 00:02:39 +0200 Subject: [PATCH] portage.repository.config.RepoConfigLoader: Add __contains__(). --- pym/portage/repository/config.py | 3 +++ 1 file changed, 3 insertions(+) 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 = [] -- 2.26.2