linkmap is already of the right type, instantiating a new object based on that seems...
authorFabian Groffen <grobian@gentoo.org>
Sat, 3 Oct 2009 10:08:26 +0000 (10:08 -0000)
committerFabian Groffen <grobian@gentoo.org>
Sat, 3 Oct 2009 10:08:26 +0000 (10:08 -0000)
svn path=/main/branches/prefix/; revision=14479

pym/portage/dbapi/vartree.py

index 1df5580c0fabe167c097b7a478d54b9e882ca734..6fd2d7c76cf771bd4fdb6f92feb722097d798b48 100644 (file)
@@ -3511,13 +3511,7 @@ class dblink(object):
                def path_to_node(path):
                        node = path_node_map.get(path)
                        if node is None:
-                               chost = self.settings.get('CHOST')
-                               if chost.find('darwin') >= 0:
-                                       node = LinkageMapMachO._LibGraphNode(path, root)
-                               elif chost.find('interix') >= 0 or chost.find('winnt') >= 0:
-                                       node = LinkageMapPeCoff._LibGraphNode(path, root)
-                               else:
-                                       node = LinkageMap._LibGraphNode(path, root)
+                               node = linkmap._LibGraphNode(path, root)
                                alt_path_node = lib_graph.get(node)
                                if alt_path_node is not None:
                                        node = alt_path_node