mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
Merge pull request #20153 from Homebrew/brew-doctor-linux-cask-errors
Improve `brew doctor` warnings about `xattr` and cask quarantine
This commit is contained in:
commit
984273be76
@ -1009,6 +1009,8 @@ module Homebrew
|
|||||||
end
|
end
|
||||||
|
|
||||||
def check_cask_xattr
|
def check_cask_xattr
|
||||||
|
return "Unable to find `xattr`." unless File.exist?("/usr/bin/xattr")
|
||||||
|
|
||||||
result = system_command "/usr/bin/xattr", args: ["-h"]
|
result = system_command "/usr/bin/xattr", args: ["-h"]
|
||||||
|
|
||||||
return if result.status.success?
|
return if result.status.success?
|
||||||
@ -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