From: Fabian Groffen Date: Sat, 3 Oct 2009 10:08:26 +0000 (-0000) Subject: linkmap is already of the right type, instantiating a new object based on that seems... X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=e2c87312e7c324acaa4cddd840a99a96a00ab538;p=portage.git linkmap is already of the right type, instantiating a new object based on that seems to work svn path=/main/branches/prefix/; revision=14479 --- diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py index 1df5580c0..6fd2d7c76 100644 --- a/pym/portage/dbapi/vartree.py +++ b/pym/portage/dbapi/vartree.py @@ -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