summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-09-27 11:40:02 -0700
committerZac Medico <zmedico@gentoo.org>2010-09-27 11:40:02 -0700
commit639dc087b09f1b003853c29ca77ad336e7a11f86 (patch)
tree1de030253b37c584507c2efa9b507374b56817cf /pym
parent35639b64d56f8eae8674e5173261899d5316ccf5 (diff)
downloadportage-639dc087b09f1b003853c29ca77ad336e7a11f86.tar.gz
portage-639dc087b09f1b003853c29ca77ad336e7a11f86.tar.bz2
portage-639dc087b09f1b003853c29ca77ad336e7a11f86.zip
Use realpath for portdbapi.porttrees and porttree_root since that's
how it was prior to merge of the reposyntax branch.
Diffstat (limited to 'pym')
-rw-r--r--pym/portage/dbapi/porttree.py6
1 files changed, 4 insertions, 2 deletions
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)