mirror of https://github.com/iv-org/invidious.git
Use native crystal sha1 digest
Crystal now supports OpenSSL 3
Reverts 4e629ca858
This commit is contained in:
parent
3195fd06f2
commit
37340f227d
|
@ -27,7 +27,7 @@ class Dependency
|
|||
File.write("#{@download_path}/package.tgz", data)
|
||||
|
||||
# https://github.com/iv-org/invidious/pull/2397#issuecomment-922375908
|
||||
if !@skip_checksum && `sha1sum #{@download_path}/package.tgz`.split(" ")[0] != @dependency_config["shasum"]
|
||||
if !@skip_checksum && Digest::SHA1.hexdigest(data) != @dependency_config["shasum"]
|
||||
raise Exception.new("Checksum for '#{@dependency}' failed")
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue