deprecate_disable: remap unsigned to fails_gatekeeper_check

This commit is contained in:
Bevan Kay 2025-08-18 14:15:19 +10:00
parent 97b1683466
commit 6c567067fd
No known key found for this signature in database
GPG Key ID: C55CB024B5314B57

View File

@ -69,6 +69,9 @@ module DeprecateDisable
formula_or_cask.disable_reason
end
# odeprecate: remove this remapping in a future release
reason = :fails_gatekeeper_check if reason == :unsigned
reason = if formula_or_cask.is_a?(Formula) && FORMULA_DEPRECATE_DISABLE_REASONS.key?(reason)
FORMULA_DEPRECATE_DISABLE_REASONS[reason]
elsif formula_or_cask.is_a?(Cask::Cask) && CASK_DEPRECATE_DISABLE_REASONS.key?(reason)