commit 4a0236529cfbc134e8b1673c2bd3ca435aef9b94 Author: Mike Perry mikeperry-git@torproject.org Date: Tue Jun 11 02:19:19 2013 -0700
Build determinism fix: buildlist.py is non-determistic during make. --- config/buildlist.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/config/buildlist.py b/config/buildlist.py index 71677e4..e7d325c 100644 --- a/config/buildlist.py +++ b/config/buildlist.py @@ -24,12 +24,11 @@ def addEntriesToListFile(listFile, entries): f.close() else: existing = set() - f = open(listFile, 'a') for e in entries: if e not in existing: - f.write("%s\n" % e) existing.add(e) - f.close() + f = open(listFile, 'w') + f.write("\n".join(sorted(existing))+"\n") finally: lock = None