aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorAdam Vandenberg2012-11-11 11:54:03 -0800
committerAdam Vandenberg2012-11-11 12:33:50 -0800
commit847baa9e143010b79aec043d44a7247911d42063 (patch)
tree4837e7d9c3e5f0469c4b4b55aaee27ec759fd693 /Library/Homebrew/cmd
parentf1f6807c0745e29d2e14e7458d77b5649c43f5c5 (diff)
downloadbrew-847baa9e143010b79aec043d44a7247911d42063.tar.bz2
doctor checks XQuartz version
Closes Homebrew/homebrew#14182.
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/doctor.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb
index 7d1b96211..c02323365 100644
--- a/Library/Homebrew/cmd/doctor.rb
+++ b/Library/Homebrew/cmd/doctor.rb
@@ -973,6 +973,20 @@ end
EOS
end
+ def check_for_latest_xquartz
+ quartz = MacOS::XQuartz.version
+ return unless quartz
+
+ quartz = Version.new(quartz)
+ latest = Version.new(MacOS::XQuartz.latest_version)
+
+ return if quartz >= latest
+
+ <<-EOS.undent
+ Your XQuartz (#{quartz}) is outdated
+ Please install XQuartz #{latest}.
+ EOS
+ end
end # end class Checks
module Homebrew extend self