[tor-commits] [tor-browser/tor-browser-17.0.6esr-5] Build determinism fix: buildlist.py is non-determistic during make.
mikeperry at torproject.org
mikeperry at torproject.org
Tue Jun 11 09:22:51 UTC 2013
commit 4a0236529cfbc134e8b1673c2bd3ca435aef9b94
Author: Mike Perry <mikeperry-git at 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
More information about the tor-commits
mailing list