diff options
author | 2015-11-24 01:21:07 -0500 | |
---|---|---|
committer | 2016-03-09 02:43:22 -0500 | |
commit | 06d6d739d10bc0f6d5d4c6ff2b209f01bc08c55c (patch) | |
tree | 75bbf463573ae884354d446df137ade83a13fd8e | |
parent | portage_conf: add check for invalid repo-type settings (diff) | |
download | pkgcore-06d6d739d10bc0f6d5d4c6ff2b209f01bc08c55c.tar.gz pkgcore-06d6d739d10bc0f6d5d4c6ff2b209f01bc08c55c.tar.bz2 pkgcore-06d6d739d10bc0f6d5d4c6ff2b209f01bc08c55c.zip |
portage_conf: make repos immutable initially
Since we don't need to append the binpkg repo to it anymore as it's
already included.
-rw-r--r-- | pkgcore/ebuild/portage_conf.py | 6 |
1 files 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',), |