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

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



commit 5d9099aa9406a0084aa89df85fe165488b151e60
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 faa1037..6f6d8b1 100755
--- a/tools/update-responses/update_responses
+++ b/tools/update-responses/update_responses
@@ -344,7 +344,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