Use realpath for portdbapi.porttrees and porttree_root since that's
authorZac Medico <zmedico@gentoo.org>
Mon, 27 Sep 2010 18:40:02 +0000 (11:40 -0700)
committerZac Medico <zmedico@gentoo.org>
Mon, 27 Sep 2010 18:40:02 +0000 (11:40 -0700)
how it was prior to merge of the reposyntax branch.

pym/portage/dbapi/porttree.py

index 49a1b004912bc1ac4c201fd2c6a6d9422d39fee8..ac93ff35571deb50155f7dd274c258c57c46ae12 100644 (file)
@@ -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)