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

[tor-commits] [tor-browser-bundle/hardened-builds] Bug 20583: make the downloads.json file reproducible



commit 4df28e4afbd833126d4f9c3409795c6890b31b74
Author: Nicolas Vigier <boklm@xxxxxxxxxxxxxx>
Date:   Sat Nov 5 19:46:09 2016 +0100

    Bug 20583: make the downloads.json file reproducible
---
 tools/update-responses/update_responses | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tools/update-responses/update_responses b/tools/update-responses/update_responses
index 498132e..69535c9 100755
--- a/tools/update-responses/update_responses
+++ b/tools/update-responses/update_responses
@@ -369,7 +369,8 @@ sub write_downloads_json {
             version => $version,
             downloads => get_version_downloads($config, $version),
         };
-        write_htdocs($channel, 'downloads.json', encode_json($data));
+        write_htdocs($channel, 'downloads.json',
+            JSON->new->utf8->canonical->encode($data));
     }
 }
 

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