aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/macos
diff options
context:
space:
mode:
authorJack Nagel2012-11-12 19:42:26 -0600
committerJack Nagel2012-11-12 19:48:09 -0600
commit6b6e22ffaee6bdb39bfac02ced995f88bc393ce7 (patch)
tree16cccfccabe587d1a90f68498a680cb94dda901e /Library/Homebrew/macos
parentc6a8dd247e4c31ca1e9e2dba613fae9b9e65b78a (diff)
downloadbrew-6b6e22ffaee6bdb39bfac02ced995f88bc393ce7.tar.bz2
Don't advise XQuartz upgrades for system X11
Yeah, yeah. The XQuartz/X11 stuff is confusing.
Diffstat (limited to 'Library/Homebrew/macos')
-rw-r--r--Library/Homebrew/macos/xquartz.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/Library/Homebrew/macos/xquartz.rb b/Library/Homebrew/macos/xquartz.rb
index 346fdd412..6e64901fc 100644
--- a/Library/Homebrew/macos/xquartz.rb
+++ b/Library/Homebrew/macos/xquartz.rb
@@ -16,6 +16,12 @@ module MacOS::XQuartz extend self
"2.7.4"
end
+ def provided_by_apple?
+ [FORGE_BUNDLE_ID, APPLE_BUNDLE_ID].find do |id|
+ MacOS.app_with_bundle_id(id)
+ end == APPLE_BUNDLE_ID
+ end
+
# This should really be private, but for compatibility reasons it must
# remain public. New code should use MacOS::XQuartz.{bin,lib,include}
# instead, as that accounts for Xcode-only systems.