[tbb-commits] [tor-browser-bundle/master] Bug 19818: add config.yml option for the releases directory path
gk at torproject.org
gk at torproject.org
Thu Aug 11 06:30:12 UTC 2016
commit 260c051a69a7323084793c23c6ed53cd1344dd72
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 7b92a72..59b9179 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