[tbb-commits] [tor-browser-bundle/maint-6.0] Bug 20583: make the downloads.json file reproducible
gk at torproject.org
gk at torproject.org
Mon Nov 7 18:55:06 UTC 2016
commit 5d9099aa9406a0084aa89df85fe165488b151e60
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 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));
}
}
More information about the tbb-commits
mailing list