Bug #228595 - Use os.path.realpath() before comparing paths to those
authorZac Medico <zmedico@gentoo.org>
Fri, 20 Jun 2008 18:00:25 +0000 (18:00 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 20 Jun 2008 18:00:25 +0000 (18:00 -0000)
returned from portdbapi.getRepositoryPath() since those paths are
also cannonical.

svn path=/main/trunk/; revision=10746

pym/_emerge/__init__.py

index f918d20ac84446d5668bb343cae51cbd9a59a96f..6ce1208880fdb2c5779ab12f8746288cc065c93d 100644 (file)
@@ -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)