Skip to content
Snippets Groups Projects
Unverified Commit ca86f070 authored by Markus Reiter's avatar Markus Reiter Committed by GitHub
Browse files

Merge pull request #4871 from reitermarkus/no-check

Don’t add error when changing checksum to `:no_check`.
parents 88e69f5a 5cff91ac
No related branches found
No related tags found
No related merge requests found
......@@ -133,6 +133,8 @@ module Cask
end
def check_version_and_checksum
return if cask.sha256 == :no_check
return if @cask.sourcefile_path.nil?
tap = @cask.tap
......@@ -182,7 +184,8 @@ module Cask
def check_sha256_no_check_if_latest
odebug "Verifying sha256 :no_check with version :latest"
return unless cask.version.latest? && cask.sha256 != :no_check
return unless cask.version.latest?
return if cask.sha256 == :no_check
add_error "you should use sha256 :no_check when version is :latest"
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment