From 7ef5fec528c62281bfc3db7299f8b17fa95fdbbe Mon Sep 17 00:00:00 2001 From: Fabian Groffen Date: Fri, 13 Jul 2007 19:35:55 +0000 Subject: [PATCH] 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 --- pym/emerge/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.26.2