[tbb-commits] [tor-browser-bundle/hardened-builds] Bug 19818: add config.yml option for the releases directory path
gk at torproject.org
gk at torproject.org
Thu Aug 11 06:30:59 UTC 2016
commit fcf89874d5b9919633d312e89d8aea529f5664d2
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 8eaeae6..191c246 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