From: Zac Medico Date: Mon, 27 Sep 2010 18:53:58 +0000 (-0700) Subject: Use realpath for portdbapi._repository_map and treemap since that's X-Git-Tag: v2.2_rc90~99 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7a6e64c158324d5cfcaf7c5d076a39ff22e96408;p=portage.git Use realpath for portdbapi._repository_map and treemap since that's how it was before the reposyntax branch was merged. --- 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(