From 9ad263416ec282d8c6cf007ca84bf716c49c4f69 Mon Sep 17 00:00:00 2001 From: Daniel Hornung Date: Fri, 3 Feb 2012 14:33:35 -0800 Subject: [PATCH] Honor repos.conf for overlay priority, bug 402099 Signed-off-by: Zac Medico --- pym/portage/repository/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pym/portage/repository/config.py b/pym/portage/repository/config.py index 3207b3087..ebee234c3 100644 --- a/pym/portage/repository/config.py +++ b/pym/portage/repository/config.py @@ -341,7 +341,7 @@ class RepoConfigLoader(object): if repos_conf_opts is not None: # Selectively copy only the attributes which # repos.conf is allowed to override. - for k in ('aliases', 'eclass_overrides', 'masters'): + for k in ('aliases', 'eclass_overrides', 'masters', 'priority'): v = getattr(repos_conf_opts, k, None) if v is not None: setattr(repo, k, v) @@ -356,7 +356,7 @@ class RepoConfigLoader(object): if ov == portdir and portdir not in port_ov: repo.priority = -1000 - else: + elif repo.priority is None: repo.priority = base_priority base_priority += 1 -- 2.26.2