mirror of
https://github.com/iv-org/invidious.git
synced 2024-12-05 04:59:12 +05:30
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)
|
File.write("#{@download_path}/package.tgz", data)
|
||||||
|
|
||||||
# https://github.com/iv-org/invidious/pull/2397#issuecomment-922375908
|
# 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")
|
raise Exception.new("Checksum for '#{@dependency}' failed")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user