summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-06-20 18:00:25 +0000
committerZac Medico <zmedico@gentoo.org>2008-06-20 18:00:25 +0000
commit57cd3f8d6dfc951df8231724be2f31d60a4260ea (patch)
treeb95cf485a09425cc1f67dbc15a648ef65b4f764d
parent39b38469dcf3a00623a2597db171b42bb98cc069 (diff)
downloadportage-57cd3f8d6dfc951df8231724be2f31d60a4260ea.tar.gz
portage-57cd3f8d6dfc951df8231724be2f31d60a4260ea.tar.bz2
portage-57cd3f8d6dfc951df8231724be2f31d60a4260ea.zip
Bug #228595 - Use os.path.realpath() before comparing paths to those
returned from portdbapi.getRepositoryPath() since those paths are also cannonical. svn path=/main/trunk/; revision=10746
-rw-r--r--pym/_emerge/__init__.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py
index f918d20ac..6ce120888 100644
--- a/pym/_emerge/__init__.py
+++ b/pym/_emerge/__init__.py
@@ -9076,6 +9076,7 @@ def emerge_main():
if "porttree" in trees[root]:
db = trees[root]["porttree"].dbapi
paths = (db.mysettings["PORTDIR"]+" "+db.mysettings["PORTDIR_OVERLAY"]).split()
+ paths = [os.path.realpath(p) for p in paths]
repos = db.getRepositories()
for r in repos:
p = db.getRepositoryPath(r)