Fix emerge's overlay display so that it works properly with overlay paths that contai...
authorZac Medico <zmedico@gentoo.org>
Sat, 3 Jun 2006 19:21:16 +0000 (19:21 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 3 Jun 2006 19:21:16 +0000 (19:21 -0000)
svn path=/main/trunk/; revision=3450

bin/emerge

index 492e5cd682fe524c0b8141163bc8e17e84aca0f4..5e63fd4ff837b2a6690b85cbc9aeaf6098083efc 100755 (executable)
@@ -1518,7 +1518,9 @@ class depgraph:
                                return ret
 
                if verbosity == 3:
-                       overlays = string.split(portage.settings['PORTDIR_OVERLAY'])
+                       overlays = self.pkgsettings["PORTDIR_OVERLAY"].split()
+                       overlays_real = [os.path.realpath(t) \
+                               for t in self.pkgsettings["PORTDIR_OVERLAY"].split()]
 
                if "--tree" in myopts:
                        mylist.reverse()
@@ -1702,8 +1704,9 @@ class depgraph:
                                        file_name=portage.portdb.findname(x[2])
                                        if file_name: # It might not exist in the tree
                                                dir_name=os.path.abspath(os.path.dirname(file_name)+"/../..")
-                                               if (overlays.count(dir_name)>0):
-                                                       verboseadd+=teal("["+str(overlays.index(os.path.normpath(dir_name))+1)+"]")+" "
+                                               if (overlays_real.count(dir_name)>0):
+                                                       verboseadd+=teal("["+str(overlays_real.index(
+                                                               os.path.normpath(dir_name))+1)+"]")+" "
                                                        display_overlays=True
                                        else:
                                                verboseadd += "[No ebuild?]"