mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
cask/dsl: set no_autobump!
if livecheck uses :extract_plist
Signed-off-by: botantony <antonsm21@gmail.com>
This commit is contained in:
parent
4887d58826
commit
ac2d167ffc
@ -161,8 +161,6 @@ module Cask
|
||||
@token = T.let(cask.token, String)
|
||||
@url = T.let(nil, T.nilable(URL))
|
||||
@version = T.let(nil, T.nilable(DSL::Version))
|
||||
|
||||
set_no_autobump!
|
||||
end
|
||||
|
||||
sig { returns(T::Boolean) }
|
||||
@ -177,13 +175,6 @@ module Cask
|
||||
sig { returns(T::Boolean) }
|
||||
def livecheck_defined? = @livecheck_defined
|
||||
|
||||
sig { void }
|
||||
def set_no_autobump!
|
||||
return if @livecheck.strategy != :extract_plist
|
||||
|
||||
no_autobump! because: :extract_plist
|
||||
end
|
||||
|
||||
sig { returns(T::Boolean) }
|
||||
def on_system_blocks_exist? = @on_system_blocks_exist
|
||||
|
||||
@ -547,6 +538,8 @@ module Cask
|
||||
|
||||
@livecheck_defined = true
|
||||
@livecheck.instance_eval(&block)
|
||||
no_autobump! because: :extract_plist if @livecheck.strategy == :extract_plist
|
||||
@livecheck
|
||||
end
|
||||
|
||||
# Whether the cask contains a `livecheck` block. This is a legacy alias
|
||||
|
Loading…
x
Reference in New Issue
Block a user