Commit b7e11402 authored by lyxell's avatar lyxell Committed by GitHub

Merge pull request #825 from jam7/refactor/sha256-2

Add check routine before hash references to fix problem caused by #817
parents 7b411097 466f8545
...@@ -365,8 +365,8 @@ def download ...@@ -365,8 +365,8 @@ def download
sha1sum = @pkg.source_sha1 sha1sum = @pkg.source_sha1
sha256sum = @pkg.source_sha256 sha256sum = @pkg.source_sha256
else else
sha1sum = @pkg.binary_sha1[@device[:architecture]] sha1sum = @pkg.binary_sha1[@device[:architecture]] if @pkg.binary_sha1
sha256sum = @pkg.binary_sha256[@device[:architecture]] sha256sum = @pkg.binary_sha256[@device[:architecture]] if @pkg.binary_sha256
end end
Dir.chdir CREW_BREW_DIR do Dir.chdir CREW_BREW_DIR do
system('wget', '--continue', '--no-check-certificate', url, '-O', filename) system('wget', '--continue', '--no-check-certificate', url, '-O', filename)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment