[tbb-commits] [tor-browser-bundle/maint-4.0] update_responses: add support for arch migration

gk at torproject.org gk at torproject.org
Fri Nov 28 11:53:54 UTC 2014


commit c17dc8aa81fb10d27dc1b9a8c3ca4116414cccfa
Author: Nicolas Vigier <boklm at torproject.org>
Date:   Thu Nov 6 23:07:16 2014 +0100

    update_responses: add support for arch migration
---
 tools/update-responses/update_responses |    8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/tools/update-responses/update_responses b/tools/update-responses/update_responses
index a42e700..c788586 100755
--- a/tools/update-responses/update_responses
+++ b/tools/update-responses/update_responses
@@ -219,6 +219,14 @@ sub write_responses {
         get_version_files($config, $version);
         create_missing_incremental_mars($config, $version);
         my $files = $config->{versions}{$version}{files};
+        my $migrate_archs = $config->{versions}{$version}{migrate_archs} // {};
+        foreach my $old_os (keys %$migrate_archs) {
+            my $new_os = $migrate_archs->{$old_os};
+            foreach my $lang (keys %{$files->{$new_os}}) {
+                $files->{$old_os}{$lang}{complete} =
+                        $files->{$new_os}{$lang}{complete};
+            }
+        }
         foreach my $os (keys %$files) {
             foreach my $lang (keys %{$files->{$os}}) {
                 my $resp = get_response($config, $version, $os,





More information about the tbb-commits mailing list