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

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



commit 231ac78e2b551067a25bb4a0e1ffb5ecb98dff06
Author: Nicolas Vigier <boklm@xxxxxxxxxxxxxx>
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};

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