formula_auditor: Better keg_only reason message

Co-authored-by: Carlo Cabrera <30379873+carlocab@users.noreply.github.com>
This commit is contained in:
Issy Long 2023-03-18 15:27:35 +00:00 committed by GitHub
parent bda88ce96e
commit 13fe1bb4b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -473,7 +473,7 @@ module Homebrew
keg_only_message = text.to_s.match(/keg_only\s+["'](.*)["']/).captures&.first keg_only_message = text.to_s.match(/keg_only\s+["'](.*)["']/).captures&.first
return unless keg_only_message&.include?("HOMEBREW_PREFIX") return unless keg_only_message&.include?("HOMEBREW_PREFIX")
problem "`keg_only` reason should not include `HOMEBREW_PREFIX` as it provides confusing output." problem "`keg_only` reason should not include `HOMEBREW_PREFIX` as it creates confusing `brew info` output."
end end
def audit_versioned_keg_only def audit_versioned_keg_only