Use realpath(repo_path_real) to avoid a ValueError in
authorZac Medico <zmedico@gentoo.org>
Mon, 27 Sep 2010 07:21:10 +0000 (00:21 -0700)
committerZac Medico <zmedico@gentoo.org>
Mon, 27 Sep 2010 07:21:10 +0000 (00:21 -0700)
_RepoDisplay.repoStr() when overlay path has a symlink.

pym/_emerge/resolver/output.py

index 58564f8a0c80d293403c69280ecbf48c5f1418bf..f5ba5f72a71237976a9e04e157f0ccc5f7d7cb53 100644 (file)
@@ -60,6 +60,7 @@ class _RepoDisplay(object):
        def repoStr(self, repo_path_real):
                real_index = -1
                if repo_path_real:
+                       repo_path_real = os.path.realpath(repo_path_real)
                        real_index = self._repo_paths_real.index(repo_path_real)
                if real_index == -1:
                        s = "?"