diff options
author | Zac Medico <zmedico@gentoo.org> | 2013-08-06 13:01:59 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2013-08-06 13:01:59 -0700 |
commit | 2b8ed9524ba9815f3bcdd272fda2b938caee270c (patch) | |
tree | 53c41ff6a4df7b4dc54201b0981e9c46df0a7c0a | |
parent | repoman: remove set literal for python-2.6 compat (diff) | |
download | portage-2b8ed9524ba9815f3bcdd272fda2b938caee270c.tar.gz portage-2b8ed9524ba9815f3bcdd272fda2b938caee270c.tar.bz2 portage-2b8ed9524ba9815f3bcdd272fda2b938caee270c.zip |
thirdpartymirrors: use RepoConfig.prepos_orderv2.2.0_alpha195
This equivalent to, but more efficient than splitting PORTDIR_OVERLAY.
-rw-r--r-- | pym/portage/package/ebuild/config.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/pym/portage/package/ebuild/config.py b/pym/portage/package/ebuild/config.py index 070a522b9..92e6c3fed 100644 --- a/pym/portage/package/ebuild/config.py +++ b/pym/portage/package/ebuild/config.py @@ -2684,10 +2684,11 @@ class config(object): def thirdpartymirrors(self): if getattr(self, "_thirdpartymirrors", None) is None: - profileroots = [os.path.join(self["PORTDIR"], "profiles")] - for x in shlex_split(self.get("PORTDIR_OVERLAY", "")): - profileroots.insert(0, os.path.join(x, "profiles")) - thirdparty_lists = [grabdict(os.path.join(x, "thirdpartymirrors")) for x in profileroots] + thirdparty_lists = [] + for repo_name in reversed(self.repositories.prepos_order): + thirdparty_lists.append(grabdict(os.path.join( + self.repositories[repo_name].location, + "profiles", "thirdpartymirrors"))) self._thirdpartymirrors = stack_dictlist(thirdparty_lists, incremental=True) return self._thirdpartymirrors |