diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2007-08-17 23:31:37 +0000 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2007-08-17 23:31:37 +0000 |
commit | b3b407dc9899d80579e0d8a8e89071be77239f4b (patch) | |
tree | f2b0e64513b34134d6bba6ef78861b88f2344498 /lib/bb/__init__.py | |
parent | a562112049d0a4fe725a0958c5b91d3028422822 (diff) | |
download | bitbake-b3b407dc9899d80579e0d8a8e89071be77239f4b.tar.gz |
bb/__init.py: Sort digraph output to make builds more reproducible
Diffstat (limited to 'lib/bb/__init__.py')
-rw-r--r-- | lib/bb/__init__.py | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/lib/bb/__init__.py b/lib/bb/__init__.py index 585eec887..c2f2f7dbf 100644 --- a/lib/bb/__init__.py +++ b/lib/bb/__init__.py @@ -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): |