[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor-browser-build/maint-10.0-desktop] Bug 40239: Don't download mar tools from old versions
commit 35227374db93e0b7d1e5a1f09afd1db4289e7c00
Author: Nicolas Vigier <boklm@xxxxxxxxxxxxxx>
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 de24235..237a2be 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"
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits