Fix problem that for now only I encountered as in
authorFabian Groffen <grobian@gentoo.org>
Fri, 13 Jul 2007 19:35:55 +0000 (19:35 -0000)
committerFabian Groffen <grobian@gentoo.org>
Fri, 13 Jul 2007 19:35:55 +0000 (19:35 -0000)
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

index 20bb8dac2dfaa00d0c2783b75d722c31142df04a..ebf69e97b430ccec15730b631e06627e1d562de8 100644 (file)
@@ -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)