Gentoo Archives: gentoo-commits

From: "Fabian Groffen (grobian)" <grobian@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] portage r11248 - main/branches/prefix/pym/portage/dbapi
Date: Mon, 28 Jul 2008 20:26:14
Message-Id: E1KNZII-0006ID-Ld@stork.gentoo.org
1 Author: grobian
2 Date: 2008-07-28 20:26:09 +0000 (Mon, 28 Jul 2008)
3 New Revision: 11248
4
5 Modified:
6 main/branches/prefix/pym/portage/dbapi/vartree.py
7 Log:
8 implement missing getSoname function in LinkageMapMachO, thanks calculus for testing my fix
9
10 Modified: main/branches/prefix/pym/portage/dbapi/vartree.py
11 ===================================================================
12 --- main/branches/prefix/pym/portage/dbapi/vartree.py 2008-07-28 20:07:56 UTC (rev 11247)
13 +++ main/branches/prefix/pym/portage/dbapi/vartree.py 2008-07-28 20:26:09 UTC (rev 11248)
14 @@ -384,6 +384,16 @@
15 rValue.extend(self._libs[install_name]["providers"])
16 return rValue
17
18 + def getSoname(self, obj):
19 + if not self._libs:
20 + self.rebuild()
21 + if obj not in self._obj_properties:
22 + obj = realpath(obj)
23 + if obj not in self._obj_properties:
24 + raise KeyError("%s not in object list" % obj)
25 + install_name = self._obj_properties[obj][1]
26 + return install_name
27 +
28 # the missing documentation, part X.
29 # This function appears to return all (valid) providers for all
30 # needed entries that the given object has.