aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bb/__init__.py
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2007-08-17 23:31:37 +0000
committerRichard Purdie <rpurdie@linux.intel.com>2007-08-17 23:31:37 +0000
commit6feef6e7d33a42343447e234eb97000c6513958f (patch)
treeb2bc5068f4a687d6fb4b7edace068aba49381284 /lib/bb/__init__.py
parent1747e5529d91bbcc577b2e7a16a3beb2716eec1c (diff)
downloadbitbake-6feef6e7d33a42343447e234eb97000c6513958f.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__.py14
1 files changed, 12 insertions, 2 deletions
diff --git a/lib/bb/__init__.py b/lib/bb/__init__.py
index fea3c851a..537531472 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):