Use os.path.realpath(portdir) for comparison of repo paths. (branchs/prefix r7245)
authorZac Medico <zmedico@gentoo.org>
Fri, 13 Jul 2007 19:40:30 +0000 (19:40 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 13 Jul 2007 19:40:30 +0000 (19:40 -0000)
svn path=/main/trunk/; revision=7246

pym/emerge/__init__.py

index 97613e627156e351fbee6cf0b22c6364576c480c..6d27d23b0582610443e91c580555fecf1fb11d9d 100644 (file)
@@ -3017,7 +3017,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)