From b136146d10daac66f8c2eeb12a9273756d37af2c Mon Sep 17 00:00:00 2001 From: Fabian Groffen Date: Mon, 28 Jul 2008 20:26:09 +0000 Subject: [PATCH] implement missing getSoname function in LinkageMapMachO, thanks calculus for testing my fix svn path=/main/branches/prefix/; revision=11248 --- pym/portage/dbapi/vartree.py | 10 ++++++++++ 1 file changed, 10 insertions(+) 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. -- 2.26.2