diff options
author | Sebastian Luther <SebastianLuther@gmx.de> | 2010-10-19 19:38:05 +0200 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2010-10-20 11:03:07 -0700 |
commit | f5ee0560b32349e13f21b455914e2a672879d6cc (patch) | |
tree | 973011297b517101f0b487d748d3cdc23304f4ef /pym/portage | |
parent | a2b4784108a9748b5826ee16e4daebd01def7460 (diff) | |
download | portage-f5ee0560b32349e13f21b455914e2a672879d6cc.tar.gz portage-f5ee0560b32349e13f21b455914e2a672879d6cc.tar.bz2 portage-f5ee0560b32349e13f21b455914e2a672879d6cc.zip |
Ensure repo.priority is initialized.
Make sure repos in PORTDIR_OVERLAY get a priority even if they are in
repos.conf.
Diffstat (limited to 'pym/portage')
-rw-r--r-- | pym/portage/repository/config.py | 6 |
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) |