mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
Improve brew doctor
warnings about xattr
and cask quarantine
This commit is contained in:
parent
f238d3b494
commit
12e5e24ce3
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user