From: Sebastian Luther Date: Tue, 19 Oct 2010 17:38:05 +0000 (+0200) Subject: Ensure repo.priority is initialized. X-Git-Tag: v2.2_rc99~6 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f5ee0560b32349e13f21b455914e2a672879d6cc;p=portage.git Ensure repo.priority is initialized. Make sure repos in PORTDIR_OVERLAY get a priority even if they are in repos.conf. --- 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)