From 6b6e22ffaee6bdb39bfac02ced995f88bc393ce7 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Mon, 12 Nov 2012 19:42:26 -0600 Subject: Don't advise XQuartz upgrades for system X11 Yeah, yeah. The XQuartz/X11 stuff is confusing. --- Library/Homebrew/macos/xquartz.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Library/Homebrew/macos') 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. -- cgit v1.2.3