aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2013-08-08 09:04:36 -0700
committerZac Medico <zmedico@gentoo.org>2013-08-08 09:04:36 -0700
commite0a7e57e8d2cb7c14b84612c7d90b229c103616a (patch)
treea108c8c9136b52f2942a108730a93cc98107854a /pym/portage/repository/config.py
parentthirdpartymirrors: use RepoConfig.prepos_order (diff)
downloadportage-e0a7e57e8d2cb7c14b84612c7d90b229c103616a.tar.gz
portage-e0a7e57e8d2cb7c14b84612c7d90b229c103616a.tar.bz2
portage-e0a7e57e8d2cb7c14b84612c7d90b229c103616a.zip
RepoConfigLoader: handle main_repo in __delitem__
This will fix bug #480254.
Diffstat (limited to 'pym/portage/repository/config.py')
-rw-r--r--pym/portage/repository/config.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pym/portage/repository/config.py b/pym/portage/repository/config.py
index 5c37da331..7b49eea7a 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: