From 639dc087b09f1b003853c29ca77ad336e7a11f86 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 27 Sep 2010 11:40:02 -0700 Subject: Use realpath for portdbapi.porttrees and porttree_root since that's how it was prior to merge of the reposyntax branch. --- pym/portage/dbapi/porttree.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'pym') diff --git a/pym/portage/dbapi/porttree.py b/pym/portage/dbapi/porttree.py index 49a1b0049..ac93ff355 100644 --- a/pym/portage/dbapi/porttree.py +++ b/pym/portage/dbapi/porttree.py @@ -108,7 +108,8 @@ class portdbapi(dbapi): ":".join(filter(None, sandbox_write)) #adding porttress from repositories - porttrees = list(self.settings.repositories.repoLocationList()) + porttrees = [os.path.realpath(x) for x in \ + self.settings.repositories.repoLocationList()] self._missing_repo_names = self.settings.repositories.missing_repo_names # Ensure that each repo_name is unique. Later paths override @@ -119,7 +120,8 @@ class portdbapi(dbapi): self.treemap = self.settings.repositories.treemap self.porttrees = porttrees - porttree_root = self.settings.repositories.mainRepoLocation() + porttree_root = os.path.realpath( + self.settings.repositories.mainRepoLocation()) self.porttree_root = porttree_root self.eclassdb = eclass_cache.cache(porttree_root) -- cgit v1.2.3-1-g7c22