1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-30 12:29:55 +00:00

bitbake: Sync with 1.8.8 release

git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2513 311d38ba-8fff-0310-9ca6-ca027cbcb966
This commit is contained in:
Richard Purdie
2007-08-20 07:48:43 +00:00
parent e68823a20c
commit d8bfa5c6ef
11 changed files with 159 additions and 82 deletions
+13 -3
View File
@@ -21,7 +21,7 @@
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
__version__ = "1.8.7"
__version__ = "1.8.9"
__all__ = [
@@ -1124,7 +1124,12 @@ class digraph:
def allnodes(self):
"returns all nodes in the dictionary"
return self.dict.keys()
keys = self.dict.keys()
ret = []
for key in keys:
ret.append(key)
ret.sort()
return ret
def firstzero(self):
"returns first node with zero references, or NULL if no such node exists"
@@ -1168,7 +1173,12 @@ class digraph:
def getparents(self, item):
if not self.hasnode(item):
return []
return self.dict[item][1]
parents = self.dict[item][1]
ret = []
for parent in parents:
ret.append(parent)
ret.sort()
return ret
def getchildren(self, item):
if not self.hasnode(item):