From 8dff57e928a017b58e31f0a88474bd9ad42ce1c9 Mon Sep 17 00:00:00 2001 From: Arfrever Frehtes Taifersar Arahesis Date: Mon, 24 Jun 2013 21:44:30 +0200 Subject: [PATCH] portage.repository.config.RepoConfigLoader: Add __setitem__() and __delitem__(). --- pym/portage/repository/config.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pym/portage/repository/config.py b/pym/portage/repository/config.py index 304335ed4..0a2dd0066 100644 --- a/pym/portage/repository/config.py +++ b/pym/portage/repository/config.py @@ -783,9 +783,15 @@ class RepoConfigLoader(object): def get_repo_for_location(self, location): return self.prepos[self.get_name_for_location(location)] + def __setitem__(self, repo_name, repo): + self.prepos[repo_name] = repo + def __getitem__(self, repo_name): return self.prepos[repo_name] + def __delitem__(self, repo_name): + del self.prepos[repo_name] + def __iter__(self): for repo_name in self.prepos_order: yield self.prepos[repo_name] -- 2.26.2