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

gk at torproject.org gk at torproject.org
Mon Nov 7 18:55:36 UTC 2016


commit 4df28e4afbd833126d4f9c3409795c6890b31b74
Author: Nicolas Vigier <boklm at torproject.org>
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));
     }
 }
 



More information about the tor-commits mailing list