mirror of
https://github.com/gosticks/brew.git
synced 2026-10-06 15:36:59 +00:00
New casks should use livecheck.
This commit is contained in:
@@ -288,7 +288,11 @@ module Cask
|
||||
def check_appcast_and_livecheck
|
||||
return unless cask.appcast
|
||||
|
||||
add_error "Cask has a `livecheck`, the `appcast` should be removed." if cask.livecheckable?
|
||||
if cask.livecheckable?
|
||||
add_error "Cask has a `livecheck`, the `appcast` should be removed."
|
||||
elsif new_cask?
|
||||
add_error "New casks should use a `livecheck` instead of an `appcast`."
|
||||
end
|
||||
end
|
||||
|
||||
def check_latest_with_appcast_or_livecheck
|
||||
|
||||
Reference in New Issue
Block a user