portage.repository.config.RepoConfigLoader: Add __contains__().
authorArfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>
Mon, 24 Jun 2013 22:02:39 +0000 (00:02 +0200)
committerArfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>
Mon, 24 Jun 2013 22:02:39 +0000 (00:02 +0200)
pym/portage/repository/config.py

index 3d88f4851c3aec02110ea8ed61c1c834e9aeb35e..1923b7ed539823ae7917d5beec6c9a0d77e00d31 100644 (file)
@@ -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 = []