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

Add check routine before hash references to fix problem caused by #817
This commit is contained in:
lyxell
2017-06-28 12:22:16 +02:00
committed by GitHub

4
crew
View File

@@ -365,8 +365,8 @@ def download
sha1sum = @pkg.source_sha1
sha256sum = @pkg.source_sha256
else
sha1sum = @pkg.binary_sha1[@device[:architecture]]
sha256sum = @pkg.binary_sha256[@device[:architecture]]
sha1sum = @pkg.binary_sha1[@device[:architecture]] if @pkg.binary_sha1
sha256sum = @pkg.binary_sha256[@device[:architecture]] if @pkg.binary_sha256
end
Dir.chdir CREW_BREW_DIR do
system('wget', '--continue', '--no-check-certificate', url, '-O', filename)