diff options
Diffstat (limited to 'bitbake/lib/bb/__init__.py')
-rw-r--r-- | bitbake/lib/bb/__init__.py | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/bitbake/lib/bb/__init__.py b/bitbake/lib/bb/__init__.py index 585eec8875..77b1255c77 100644 --- a/bitbake/lib/bb/__init__.py +++ b/bitbake/lib/bb/__init__.py | |||
@@ -21,7 +21,7 @@ | |||
21 | # with this program; if not, write to the Free Software Foundation, Inc., | 21 | # with this program; if not, write to the Free Software Foundation, Inc., |
22 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | 22 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
23 | 23 | ||
24 | __version__ = "1.8.7" | 24 | __version__ = "1.8.9" |
25 | 25 | ||
26 | __all__ = [ | 26 | __all__ = [ |
27 | 27 | ||
@@ -1124,7 +1124,12 @@ class digraph: | |||
1124 | 1124 | ||
1125 | def allnodes(self): | 1125 | def allnodes(self): |
1126 | "returns all nodes in the dictionary" | 1126 | "returns all nodes in the dictionary" |
1127 | return self.dict.keys() | 1127 | keys = self.dict.keys() |
1128 | ret = [] | ||
1129 | for key in keys: | ||
1130 | ret.append(key) | ||
1131 | ret.sort() | ||
1132 | return ret | ||
1128 | 1133 | ||
1129 | def firstzero(self): | 1134 | def firstzero(self): |
1130 | "returns first node with zero references, or NULL if no such node exists" | 1135 | "returns first node with zero references, or NULL if no such node exists" |
@@ -1168,7 +1173,12 @@ class digraph: | |||
1168 | def getparents(self, item): | 1173 | def getparents(self, item): |
1169 | if not self.hasnode(item): | 1174 | if not self.hasnode(item): |
1170 | return [] | 1175 | return [] |
1171 | return self.dict[item][1] | 1176 | parents = self.dict[item][1] |
1177 | ret = [] | ||
1178 | for parent in parents: | ||
1179 | ret.append(parent) | ||
1180 | ret.sort() | ||
1181 | return ret | ||
1172 | 1182 | ||
1173 | def getchildren(self, item): | 1183 | def getchildren(self, item): |
1174 | if not self.hasnode(item): | 1184 | if not self.hasnode(item): |