[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor-browser/tor-browser-17.0.6esr-5] Build determinism fix: buildlist.py is non-determistic during make.



commit 4a0236529cfbc134e8b1673c2bd3ca435aef9b94
Author: Mike Perry <mikeperry-git@xxxxxxxxxxxxxx>
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
 

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits