From: Fabian Groffen Date: Fri, 13 Jul 2007 19:35:55 +0000 (-0000) Subject: Fix problem that for now only I encountered as in X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=7ef5fec528c62281bfc3db7299f8b17fa95fdbbe;p=portage.git Fix problem that for now only I encountered as in http://article.gmane.org/gmane.linux.gentoo.alt/2778 dbapi.getRepositoryPath returns an os.path.realpath-ified path of the repository, which means in case of symlinks (my case) this is different from what the PORTDIR variable gives. So before comparing, os.path.realpath-ify the PORTDIR too. svn path=/main/branches/prefix/; revision=7245 --- diff --git a/pym/emerge/__init__.py b/pym/emerge/__init__.py index 20bb8dac2..ebf69e97b 100644 --- a/pym/emerge/__init__.py +++ b/pym/emerge/__init__.py @@ -3018,7 +3018,7 @@ class depgraph(object): # assing lookup indexes if not oldrepo: oldrepoindex = "?" - elif oldrepo == pkgsettings["PORTDIR"]: + elif oldrepo == os.path.realpath(pkgsettings["PORTDIR"]): oldrepoindex = "0" else: oldrepoindex = str(overlays_real.index(os.path.normpath(oldrepo)) + 1)