Skip to content

Commit

Permalink
brew doctor recommends using cask to upgrade XQuartz
Browse files Browse the repository at this point in the history
Also changes exceptions.rb to use Formatter.url
  • Loading branch information
adzenith committed Nov 10, 2016
1 parent 8a7317a commit 969ac3a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
6 changes: 2 additions & 4 deletions Library/Homebrew/cask/lib/hbc/exceptions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,11 @@ def to_s
class CaskX11DependencyError < AbstractCaskErrorWithToken
def to_s
<<-EOS.undent
#{token} requires XQuartz/X11, which can be installed via homebrew-cask by
#{token} requires XQuartz/X11, which can be installed using Homebrew-Cask by running
brew cask install xquartz
or manually, by downloading the package from
https://www.xquartz.org/
#{Formatter.url("https://www.xquartz.org/")}
EOS
end
end
Expand Down
5 changes: 3 additions & 2 deletions Library/Homebrew/extend/os/mac/diagnostic.rb
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,9 @@ def check_for_latest_xquartz

<<-EOS.undent
Your XQuartz (#{installed_version}) is outdated.
Please install XQuartz #{latest_version} (or delete it):
https://xquartz.macosforge.org
Please install XQuartz #{latest_version} (or delete the current version).
XQuartz can be updated using Homebrew-Cask by running
brew cask reinstall xquartz
EOS
end

Expand Down

0 comments on commit 969ac3a

Please sign in to comment.