diff options
author | Arfrever Frehtes Taifersar Arahesis <Arfrever@Gentoo.Org> | 2011-12-18 22:25:07 +0100 |
---|---|---|
committer | Arfrever Frehtes Taifersar Arahesis <Arfrever@Gentoo.Org> | 2011-12-18 22:25:07 +0100 |
commit | 3427c50559cba9b488580f0b742fa2059a06e101 (patch) | |
tree | be626936b80a4825b497e4d58d561138fd2b66ff /pym/portage | |
parent | 3360b046e0cb7f23e6edba23dbef6d0ccd558834 (diff) | |
download | portage-3427c50559cba9b488580f0b742fa2059a06e101.tar.gz portage-3427c50559cba9b488580f0b742fa2059a06e101.tar.bz2 portage-3427c50559cba9b488580f0b742fa2059a06e101.zip |
RepoConfigLoader._add_overlays(): Rename a variable and add a comment.
Diffstat (limited to 'pym/portage')
-rw-r--r-- | pym/portage/repository/config.py | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/pym/portage/repository/config.py b/pym/portage/repository/config.py index 0f3f836af..eb72070c9 100644 --- a/pym/portage/repository/config.py +++ b/pym/portage/repository/config.py @@ -321,14 +321,15 @@ class RepoConfigLoader(object): repo_opts = default_repo_opts.copy() repo_opts['location'] = ov repo = RepoConfig(None, repo_opts) - repo_conf_opts = prepos.get(repo.name) - if repo_conf_opts is not None: - if repo_conf_opts.aliases is not None: - repo.aliases = repo_conf_opts.aliases - if repo_conf_opts.eclass_overrides is not None: - repo.eclass_overrides = repo_conf_opts.eclass_overrides - if repo_conf_opts.masters is not None: - repo.masters = repo_conf_opts.masters + # repos_conf_opts contains options from /etc/portage/repos.conf + repos_conf_opts = prepos.get(repo.name) + if repos_conf_opts is not None: + if repos_conf_opts.aliases is not None: + repo.aliases = repos_conf_opts.aliases + if repos_conf_opts.eclass_overrides is not None: + repo.eclass_overrides = repos_conf_opts.eclass_overrides + if repos_conf_opts.masters is not None: + repo.masters = repos_conf_opts.masters if repo.name in prepos: old_location = prepos[repo.name].location |