[tor-commits] [tor-browser-bundle/master] Bug 15670: add support for the no_update_for option in config.yml

gk at torproject.org gk at torproject.org
Wed Apr 15 13:14:29 UTC 2015


commit 7d7faa30b4443f0cc76474738a36fd3f45e875f4
Author: Nicolas Vigier <boklm at torproject.org>
Date:   Mon Apr 13 19:53:11 2015 +0200

    Bug 15670: add support for the no_update_for option in config.yml
---
 tools/update-responses/update_responses |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tools/update-responses/update_responses b/tools/update-responses/update_responses
index 07efc7c..6c497ef 100755
--- a/tools/update-responses/update_responses
+++ b/tools/update-responses/update_responses
@@ -283,6 +283,10 @@ sub write_htaccess {
         my $version = $config->{channels}{$channel};
         my $files = $config->{versions}{$version}{files};
         $htaccess .= "RewriteRule ^[^\/]+/$version/ no-update.xml $flags\n";
+        my $noup_for = $config->{no_update_for}{$channel};
+        for my $noup_ver (ref $noup_for eq 'ARRAY' ? @$noup_for : ()) {
+            $htaccess .= "RewriteRule ^[^\/]+/$noup_ver/ no-update.xml $flags\n";
+        }
         foreach my $os (sort keys %$files) {
             my $bt = build_target_by_os($os);
             foreach my $lang (sort keys %{$files->{$os}}) {



More information about the tor-commits mailing list