Use native crystal sha1 digest

Crystal now supports OpenSSL 3

Reverts 4e629ca858
This commit is contained in:
syeopite 2024-02-18 16:56:26 -08:00
parent 3195fd06f2
commit 37340f227d
No known key found for this signature in database
GPG Key ID: A73C186DA3955A1A

View File

@ -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