From: Zac Medico Date: Fri, 20 Jun 2008 18:00:25 +0000 (-0000) Subject: Bug #228595 - Use os.path.realpath() before comparing paths to those X-Git-Tag: v2.2_rc2~368 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=57cd3f8d6dfc951df8231724be2f31d60a4260ea;p=portage.git 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 --- 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)