From: Zac Medico Date: Tue, 6 Aug 2013 20:01:59 +0000 (-0700) Subject: thirdpartymirrors: use RepoConfig.prepos_order X-Git-Tag: v2.2.0_alpha195 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2b8ed9524ba9815f3bcdd272fda2b938caee270c;p=portage.git thirdpartymirrors: use RepoConfig.prepos_order This equivalent to, but more efficient than splitting PORTDIR_OVERLAY. --- 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