[tbb-commits] [tor-browser-build/master] Bug 40239: Don't download mar tools from old versions

sysrqb at torproject.org sysrqb at torproject.org
Fri Feb 19 18:00:01 UTC 2021


commit e979fe32266998a508821669a613f6101875bd51
Author: Nicolas Vigier <boklm at torproject.org>
Date:   Fri Feb 19 17:04:43 2021 +0100

    Bug 40239: Don't download mar tools from old versions
    
    Before generating incremental mar files, we download mar files and
    mar-tools-linux64.zip from the previous version. However we use
    mar-tools from the new version and don't use the one from the old
    version, so there is no need to download it.
---
 tools/update-responses/update_responses | 15 ---------------
 1 file changed, 15 deletions(-)

diff --git a/tools/update-responses/update_responses b/tools/update-responses/update_responses
index 35b971f..e897563 100755
--- a/tools/update-responses/update_responses
+++ b/tools/update-responses/update_responses
@@ -565,21 +565,6 @@ sub download_version {
     my %sums = map { chomp; reverse split '  ', $_ }
                  read_file "$destdir/sha256sums-signed-build.txt";
 
-    my $martools = 'mar-tools-linux64.zip';
-    exit_error "Error downloading $urldir/$martools\n"
-        unless getstore("$urldir/$martools", "$tmpdir/$martools") == 200;
-    exit_error "Error downloading $urldir/$martools.asc\n"
-        unless getstore("$urldir/$martools.asc", "$tmpdir/$martools.asc") == 200;
-    if (system('gpg', '--no-default-keyring', '--keyring',
-            "$FindBin::Bin/$config->{download}{gpg_keyring}", '--verify',
-            "$tmpdir/$martools.asc", "$tmpdir/$martools")) {
-        exit_error "Error checking gpg signature for $version/$martools";
-    }
-    exit_error "Wrong checksum for $version/$martools"
-        unless $sums{$martools} eq sha256_hex(read_file("$tmpdir/$martools"));
-    move "$tmpdir/$martools", "$destdir/$martools";
-    move "$tmpdir/$martools.asc", "$destdir/$martools.asc";
-
     foreach my $file (sort grep { $_ =~ m/\.mar$/ } keys %sums) {
         print "Downloading $file\n";
         exit_error "Error downloading $urldir/$file\n"



More information about the tbb-commits mailing list