Improve brew doctor warnings about xattr and cask quarantine

This commit is contained in:
Rylan Polster 2025-06-21 21:59:14 -04:00
parent f238d3b494
commit 12e5e24ce3
No known key found for this signature in database

View File

@ -1031,6 +1031,8 @@ module Homebrew
end end
elsif result.stderr.include? "pkg_resources.DistributionNotFound" elsif result.stderr.include? "pkg_resources.DistributionNotFound"
"Your Python installation is unable to find `xattr`." "Your Python installation is unable to find `xattr`."
elsif result.stderr.include? "No such file or directory"
"Unable to find `xattr`."
else else
"unknown xattr error: #{result.stderr.split("\n").last}" "unknown xattr error: #{result.stderr.split("\n").last}"
end end
@ -1044,6 +1046,8 @@ module Homebrew
"No Cask quarantine support available: there's no working version of `xattr` on this system." "No Cask quarantine support available: there's no working version of `xattr` on this system."
when :no_swift when :no_swift
"No Cask quarantine support available: there's no available version of `swift` on this system." "No Cask quarantine support available: there's no available version of `swift` on this system."
when :linux
"No Cask quarantine support available: not available on Linux."
else else
"No Cask quarantine support available: unknown reason." "No Cask quarantine support available: unknown reason."
end end