mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-09 15:37:56 -05:00
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:
4
crew
4
crew
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user