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 2CB661381F3 for ; Thu, 8 Aug 2013 16:05:00 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 35798E0A93; Thu, 8 Aug 2013 16:04:58 +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 C1403E0A93 for ; Thu, 8 Aug 2013 16:04:57 +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 98EF933EB8B for ; Thu, 8 Aug 2013 16:04:56 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id F0615E468F for ; Thu, 8 Aug 2013 16:04:54 +0000 (UTC) From: "Zac Medico" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Zac Medico" Message-ID: <1375977876.e0a7e57e8d2cb7c14b84612c7d90b229c103616a.zmedico@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: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: e0a7e57e8d2cb7c14b84612c7d90b229c103616a X-VCS-Branch: master Date: Thu, 8 Aug 2013 16:04:54 +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: e38c9a9b-a9ea-47ed-b774-61505e07b721 X-Archives-Hash: 1e9ada27565a55afbd87792363333a62 commit: e0a7e57e8d2cb7c14b84612c7d90b229c103616a Author: Zac Medico gentoo org> AuthorDate: Thu Aug 8 16:04:36 2013 +0000 Commit: Zac Medico gentoo org> CommitDate: Thu Aug 8 16:04:36 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=e0a7e57e RepoConfigLoader: handle main_repo in __delitem__ This will fix bug #480254. --- pym/portage/repository/config.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pym/portage/repository/config.py b/pym/portage/repository/config.py index 5c37da3..7b49eea 100644 --- a/pym/portage/repository/config.py +++ b/pym/portage/repository/config.py @@ -886,6 +886,8 @@ class RepoConfigLoader(object): return self.prepos[repo_name] def __delitem__(self, repo_name): + if repo_name == self.prepos['DEFAULT'].main_repo: + self.prepos['DEFAULT'].main_repo = None location = self.prepos[repo_name].location del self.prepos[repo_name] if repo_name in self.prepos_order: