mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-04-11.git
synced 2024-08-15 00:43:26 +00:00
Use shell command sha1sum
for checksum
Crystal doesn't support OpenSSL3, the version Alpine uses. See https://github.com/iv-org/invidious/pull/2397#issuecomment-922375908
This commit is contained in:
parent
c32cae00d5
commit
4e629ca858
1 changed files with 2 additions and 1 deletions
|
@ -91,7 +91,8 @@ dependencies_to_install.each do |dep|
|
|||
data = response.body_io.gets_to_end
|
||||
File.write("#{download_path}/package.tgz", data)
|
||||
|
||||
if Digest::SHA1.hexdigest(data) != required_dependencies[dep]["shasum"]
|
||||
# https://github.com/iv-org/invidious/pull/2397#issuecomment-922375908
|
||||
if `sha1sum #{download_path}/package.tgz`.split(" ")[0] != required_dependencies[dep]["shasum"]
|
||||
raise Exception.new("Checksum for '#{dep}' failed")
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue