summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-09-27 11:53:58 -0700
committerZac Medico <zmedico@gentoo.org>2010-09-27 11:53:58 -0700
commit7a6e64c158324d5cfcaf7c5d076a39ff22e96408 (patch)
tree833daa2a2b5702650542aa54019c202b88f49667
parent639dc087b09f1b003853c29ca77ad336e7a11f86 (diff)
downloadportage-7a6e64c158324d5cfcaf7c5d076a39ff22e96408.tar.gz
portage-7a6e64c158324d5cfcaf7c5d076a39ff22e96408.tar.bz2
portage-7a6e64c158324d5cfcaf7c5d076a39ff22e96408.zip
Use realpath for portdbapi._repository_map and treemap since that's
how it was before the reposyntax branch was merged.
-rw-r--r--pym/portage/dbapi/porttree.py8
1 files 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(