Skip to content
Snippets Groups Projects
Unverified Commit d64bc351 authored by boklm's avatar boklm
Browse files

Bug 41247: Drop sha512 hash from update_responses files (except for nightly)

With tor-browser#42737, the sha512 hash included in the update_responses
files is not checked anymore. Since we're doing a watershed update,
support for older versions checking the hash is not needed.

However since we don't do watershed updates in nightly, we'll keep the
sha512 hash in nightly for a little more time.
parent 0a476854
Branches
Tags
1 merge request!1052Bug 41247: Add torbrowser_legacy_version to update-responses
---
hashes_in_responses: 1
martools_version: 9.0.2
martools_url: https://archive.torproject.org/tor-package-archive/torbrowser/
martools_gpg_keyring: keyring/torbrowser.gpg
......
......
......@@ -107,8 +107,10 @@ sub get_version_files {
type => 'complete',
URL => "$download_url/$file",
size => -s "$vdir/$file",
$config->{hashes_in_responses} ? (
hashFunction => 'SHA512',
hashValue => get_sha512_hex_of_file("$vdir/$file"),
) : (),
};
next;
}
......@@ -118,9 +120,11 @@ sub get_version_files {
type => 'partial',
URL => "$download_url/$file",
size => -s "$vdir/$file",
$config->{hashes_in_responses} ? (
hashFunction => 'SHA512',
hashValue => get_sha512_hex_of_file("$vdir/$file"),
}
) : (),
};
}
}
closedir $d;
......@@ -241,8 +245,10 @@ sub create_incremental_mar {
type => 'partial',
URL => "$download_url/$mar_file",
size => -s $mar_file_path,
$config->{hashes_in_responses} ? (
hashFunction => 'SHA512',
hashValue => get_sha512_hex_of_file($mar_file_path),
) : (),
};
};
return if $pm->start($finished_file);
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment