summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage/repository/config.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/pym/portage/repository/config.py b/pym/portage/repository/config.py
index 102df5a2c..8882b878d 100644
--- a/pym/portage/repository/config.py
+++ b/pym/portage/repository/config.py
@@ -244,12 +244,16 @@ class RepoConfigLoader(object):
ignored_location_map[old_location] = repo.name
prepos[repo.name].update(repo)
else:
+ prepos[repo.name] = repo
+
+ repo = prepos[repo.name]
+ if repo.priority is None:
if ov == portdir and portdir not in port_ov:
repo.priority = 1000
else:
repo.priority = base_priority
base_priority -= 1
- prepos[repo.name] = repo
+
else:
writemsg(_("!!! Invalid PORTDIR_OVERLAY"
" (not a dir): '%s'\n") % ov, noiselevel=-1)