[tbb-commits] [tor-browser-bundle/maint-6.0] Bug 19818: add config.yml option for the releases directory path

gk at torproject.org gk at torproject.org
Thu Aug 11 06:30:33 UTC 2016


commit 1bb5bba64b60009c3deb8cc5119dd41d7615f3d4
Author: Nicolas Vigier <boklm at torproject.org>
Date:   Mon Aug 8 11:50:38 2016 +0200

    Bug 19818: add config.yml option for the releases directory path
---
 tools/update-responses/config.yml       | 1 +
 tools/update-responses/update_responses | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/tools/update-responses/config.yml b/tools/update-responses/config.yml
index 16843df..36192fc 100644
--- a/tools/update-responses/config.yml
+++ b/tools/update-responses/config.yml
@@ -1,4 +1,5 @@
 ---
+releases_dir: ../../gitian
 download:
     archive_url: https://archive.torproject.org/tor-package-archive/torbrowser
     gpg_keyring: ../../gitian/gpg/torbrowser.gpg
diff --git a/tools/update-responses/update_responses b/tools/update-responses/update_responses
index 1a7cb14..cf307da 100755
--- a/tools/update-responses/update_responses
+++ b/tools/update-responses/update_responses
@@ -30,7 +30,8 @@ setlocale(LC_ALL, "C");
 my $htdocsdir = "$FindBin::Bin/htdocs";
 my $config = LoadFile("$FindBin::Bin/config.yml");
 my %htdocsfiles;
-my $releases_dir = "$FindBin::Bin/../../gitian";
+my $releases_dir = $config->{releases_dir};
+$releases_dir = "$FindBin::Bin/$releases_dir" unless $releases_dir =~ m/^\//;
 my @check_errors;
 
 sub exit_error {



More information about the tbb-commits mailing list