From 06d6d739d10bc0f6d5d4c6ff2b209f01bc08c55c Mon Sep 17 00:00:00 2001 From: Tim Harder Date: Tue, 24 Nov 2015 01:21:07 -0500 Subject: portage_conf: make repos immutable initially Since we don't need to append the binpkg repo to it anymore as it's already included. --- pkgcore/ebuild/portage_conf.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgcore/ebuild/portage_conf.py b/pkgcore/ebuild/portage_conf.py index 1aa730e9..b1c117c6 100644 --- a/pkgcore/ebuild/portage_conf.py +++ b/pkgcore/ebuild/portage_conf.py @@ -520,14 +520,14 @@ def config_from_make_conf(location=None, profile_override=None, **kwargs): # to dynamically create this from the config at runtime on attr access. profiles.ProfileNode._repo_map = ImmutableDict(repo_map) - repos = [name for name in repos_conf.iterkeys()] + repos = tuple(name for name in repos_conf.iterkeys()) binary_repos = [name for name, opts in repos_conf.iteritems() if opts['repo-type'] == 'binpkg'] if len(repos) > 1: config['repo-stack'] = basics.FakeIncrementalDictConfigSection( my_convert_hybrid, { 'class': 'pkgcore.repository.multiplex.config_tree', - 'repositories': tuple(repos)}) + 'repositories': repos}) else: config['repo-stack'] = basics.section_alias(repos[0], 'repo') @@ -625,7 +625,7 @@ def config_from_make_conf(location=None, profile_override=None, **kwargs): # finally... domain. make_conf.update({ 'class': 'pkgcore.ebuild.domain.domain', - 'repositories': tuple(repos), + 'repositories': repos, 'fetcher': 'fetcher', 'default': True, 'vdb': ('vdb',), -- cgit v1.2.3-65-gdbad