From 7a6e64c158324d5cfcaf7c5d076a39ff22e96408 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 27 Sep 2010 11:53:58 -0700 Subject: [PATCH] Use realpath for portdbapi._repository_map and treemap since that's how it was before the reposyntax branch was merged. --- pym/portage/dbapi/porttree.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pym/portage/dbapi/porttree.py b/pym/portage/dbapi/porttree.py index ac93ff355..c401c4745 100644 --- a/pym/portage/dbapi/porttree.py +++ b/pym/portage/dbapi/porttree.py @@ -116,8 +116,12 @@ class portdbapi(dbapi): # earlier ones that correspond to the same name. self._ignored_repos = self.settings.repositories.ignored_repos - self._repository_map = self.settings.repositories.location_map - self.treemap = self.settings.repositories.treemap + self._repository_map = {} + for k, v in self.settings.repositories.location_map.items(): + self._repository_map[os.path.realpath(k)] = v + self.treemap = {} + for k, v in self.settings.repositories.treemap.items(): + self.treemap[k] = os.path.realpath(v) self.porttrees = porttrees porttree_root = os.path.realpath( -- 2.26.2