From: Fabian Groffen Date: Sun, 4 May 2008 11:32:23 +0000 (-0000) Subject: (In theory) use the MachO linkage map on Darwin X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=416d5d9d8dc625c5ae94db6c4e972ed32f0c91be;p=portage.git (In theory) use the MachO linkage map on Darwin svn path=/main/branches/prefix/; revision=10176 --- diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py index 7f6ffba48..93b7640e3 100644 --- a/pym/portage/dbapi/vartree.py +++ b/pym/portage/dbapi/vartree.py @@ -5,7 +5,7 @@ from portage.checksum import perform_md5 from portage.const import CACHE_PATH, CONFIG_MEMORY_FILE, PORTAGE_BIN_PATH, \ PRIVATE_PATH, VDB_PATH, EPREFIX, EPREFIX_LSTRIP -from portage.data import portage_gid, portage_uid, secpass +from portage.data import portage_gid, portage_uid, secpass, ostype from portage.dbapi import dbapi from portage.dep import dep_getslot, use_reduce, paren_reduce, isvalidatom, \ isjustname, dep_getkey, match_from_list @@ -400,7 +400,10 @@ class vardbapi(dbapi): # apparently this user isn't allowed to access PRIVATE_PATH self.plib_registry = None - self.linkmap = LinkageMap(self) + if ostype == "Darwin": + self.linkmap = LinkageMapMachO(self) + else: + self.linkmap = LinkageMap(self) def getpath(self, mykey, filename=None): rValue = os.path.join(self.root, VDB_PATH, mykey)