Ignore discontinued casks in bump-unversioned-casks.

This commit is contained in:
Markus Reiter 2023-02-21 12:43:03 +01:00
parent 853b33bcda
commit fbf85b7530
No known key found for this signature in database
GPG Key ID: 245293B51702655B

View File

@ -46,7 +46,9 @@ module Homebrew
casks = args.named.to_paths(only: :cask, recurse_tap: true).map { |path| Cask::CaskLoader.load(path) } casks = args.named.to_paths(only: :cask, recurse_tap: true).map { |path| Cask::CaskLoader.load(path) }
unversioned_casks = casks.select { |cask| cask.url&.unversioned? && !cask.livecheckable? } unversioned_casks = casks.select do |cask|
cask.url&.unversioned? && !cask.livecheckable? && !cask.discontinued?
end
ohai "Unversioned Casks: #{unversioned_casks.count} (#{state.size} cached)" ohai "Unversioned Casks: #{unversioned_casks.count} (#{state.size} cached)"