Don’t add error when changing checksum to :no_check.
This commit is contained in:
parent
88e69f5a88
commit
5cff91ac75
@ -133,6 +133,8 @@ module Cask
|
|||||||
end
|
end
|
||||||
|
|
||||||
def check_version_and_checksum
|
def check_version_and_checksum
|
||||||
|
return if cask.sha256 == :no_check
|
||||||
|
|
||||||
return if @cask.sourcefile_path.nil?
|
return if @cask.sourcefile_path.nil?
|
||||||
|
|
||||||
tap = @cask.tap
|
tap = @cask.tap
|
||||||
@ -182,7 +184,8 @@ module Cask
|
|||||||
|
|
||||||
def check_sha256_no_check_if_latest
|
def check_sha256_no_check_if_latest
|
||||||
odebug "Verifying sha256 :no_check with version :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"
|
add_error "you should use sha256 :no_check when version is :latest"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user