[tbb-commits] [tor-browser-build/master] Bug 32805: Make creation of a downloads.json file optional

gk at torproject.org gk at torproject.org
Fri Dec 20 11:37:31 UTC 2019


commit 231ac78e2b551067a25bb4a0e1ffb5ecb98dff06
Author: Nicolas Vigier <boklm at torproject.org>
Date:   Fri Dec 13 21:09:17 2019 +0100

    Bug 32805: Make creation of a downloads.json file optional
    
    When creating update responses for nightly builds, we don't want to
    create a downloads.json file, so we make that optional.
---
 projects/release/update_responses_config.yml | 1 +
 tools/update-responses/update_responses      | 1 +
 2 files changed, 2 insertions(+)

diff --git a/projects/release/update_responses_config.yml b/projects/release/update_responses_config.yml
index 85a1d43..8b3e4ff 100644
--- a/projects/release/update_responses_config.yml
+++ b/projects/release/update_responses_config.yml
@@ -1,5 +1,6 @@
 ---
 tmp_dir: '[% c("tmp_dir") %]'
+create_downloads_json: 1
 appname_marfile: tor-browser
 appname_bundle_osx: TorBrowser
 appname_bundle_linux: tor-browser
diff --git a/tools/update-responses/update_responses b/tools/update-responses/update_responses
index 399d289..6b25435 100755
--- a/tools/update-responses/update_responses
+++ b/tools/update-responses/update_responses
@@ -417,6 +417,7 @@ sub write_htaccess {
 
 sub write_downloads_json {
     my ($config, @channels) = @_;
+    return unless $config->{create_downloads_json};
     @channels = keys %{$config->{channels}} unless @channels;
     foreach my $channel (@channels) {
         my $version = $config->{channels}{$channel};



More information about the tbb-commits mailing list