From: Zac Medico Date: Mon, 27 Sep 2010 18:40:02 +0000 (-0700) Subject: Use realpath for portdbapi.porttrees and porttree_root since that's X-Git-Tag: v2.2_rc90~100 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=639dc087b09f1b003853c29ca77ad336e7a11f86;p=portage.git Use realpath for portdbapi.porttrees and porttree_root since that's how it was prior to merge of the reposyntax branch. --- 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)