From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 27F9D1381F3 for ; Mon, 24 Jun 2013 19:45:07 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DAE70E0960; Mon, 24 Jun 2013 19:45:03 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 76A96E0960 for ; Mon, 24 Jun 2013 19:45:03 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 6A52133E349 for ; Mon, 24 Jun 2013 19:45:02 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 0221BE468F for ; Mon, 24 Jun 2013 19:45:01 +0000 (UTC) From: "Arfrever Frehtes Taifersar Arahesis" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Arfrever Frehtes Taifersar Arahesis" Message-ID: <1372103070.8dff57e928a017b58e31f0a88474bd9ad42ce1c9.arfrever@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: pym/portage/repository/ X-VCS-Repository: proj/portage X-VCS-Files: pym/portage/repository/config.py X-VCS-Directories: pym/portage/repository/ X-VCS-Committer: arfrever X-VCS-Committer-Name: Arfrever Frehtes Taifersar Arahesis X-VCS-Revision: 8dff57e928a017b58e31f0a88474bd9ad42ce1c9 X-VCS-Branch: master Date: Mon, 24 Jun 2013 19:45:01 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: a9e6e8bf-6ca3-43a8-a129-6f7c4c413e61 X-Archives-Hash: 60304e0cd8de459503861db8d296529e commit: 8dff57e928a017b58e31f0a88474bd9ad42ce1c9 Author: Arfrever Frehtes Taifersar Arahesis Apache Org> AuthorDate: Mon Jun 24 19:44:30 2013 +0000 Commit: Arfrever Frehtes Taifersar Arahesis gmail com> CommitDate: Mon Jun 24 19:44:30 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=8dff57e9 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 304335e..0a2dd00 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]