From: Fabian Groffen Date: Mon, 28 Jul 2008 20:26:09 +0000 (-0000) Subject: implement missing getSoname function in LinkageMapMachO, thanks calculus for testing... X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=b136146d10daac66f8c2eeb12a9273756d37af2c;p=portage.git implement missing getSoname function in LinkageMapMachO, thanks calculus for testing my fix svn path=/main/branches/prefix/; revision=11248 --- diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py index 1f8ee15f8..53285329b 100644 --- a/pym/portage/dbapi/vartree.py +++ b/pym/portage/dbapi/vartree.py @@ -384,6 +384,16 @@ class LinkageMapMachO(object): rValue.extend(self._libs[install_name]["providers"]) return rValue + def getSoname(self, obj): + if not self._libs: + self.rebuild() + if obj not in self._obj_properties: + obj = realpath(obj) + if obj not in self._obj_properties: + raise KeyError("%s not in object list" % obj) + install_name = self._obj_properties[obj][1] + return install_name + # the missing documentation, part X. # This function appears to return all (valid) providers for all # needed entries that the given object has.