From 45a642c36327886db50a6967731cc09c6deb509d Mon Sep 17 00:00:00 2001 From: Sam Ford <1584702+samford@users.noreply.github.com> Date: Tue, 2 Sep 2025 11:32:22 -0400 Subject: [PATCH] SkipConditions: check disabled before deprecated We have some formulae and casks that contain both `deprecate!` and `disable!` calls, presumably as a way of controlling the deprecation behavior before the disable date is reached. However, once the disable date has been reached, `Livecheck::SkipConditions` continues to skip the package as deprecated instead of disabled. This isn't a functional issue as the package is still skipped but it isn't accurate because it's not being skipped as disabled. This reorders `FORMULA_CHECKS` and `CASK_CHECKS` to run the disabled check before the deprecated check, so the disable date will take precedence when it's been reached. --- Library/Homebrew/livecheck/skip_conditions.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/livecheck/skip_conditions.rb b/Library/Homebrew/livecheck/skip_conditions.rb index 9ead3ef057..b78c783c6e 100644 --- a/Library/Homebrew/livecheck/skip_conditions.rb +++ b/Library/Homebrew/livecheck/skip_conditions.rb @@ -198,8 +198,8 @@ module Homebrew FORMULA_CHECKS = T.let([ :package_or_resource_skip, :formula_head_only, - :formula_deprecated, :formula_disabled, + :formula_deprecated, :formula_versioned, ].freeze, T::Array[Symbol]) private_constant :FORMULA_CHECKS @@ -207,8 +207,8 @@ module Homebrew # Skip conditions for casks. CASK_CHECKS = T.let([ :package_or_resource_skip, - :cask_deprecated, :cask_disabled, + :cask_deprecated, :cask_extract_plist, :cask_version_latest, :cask_url_unversioned,