aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDominyk Tiller2015-07-30 18:07:07 +0100
committerDominyk Tiller2015-07-30 18:07:07 +0100
commit639329cf80f0eadd77f6894fd02ceaa858baa84b (patch)
tree72e8286d0fbf3c99229c7c3f2afadc0914bdba15
parenta9b9c5ade798ca8378f9e8bf3d82f6f2b01d8312 (diff)
downloadbrew-639329cf80f0eadd77f6894fd02ceaa858baa84b.tar.bz2
xcode: update regex
Ensures we capture Clang's fourth-digit when it exists. This seems to be on pre-release versions of OS X only, but is the cause of the misdetection of CLT up-to-date status on 10.11 several weeks ago. For full explanation, see Homebrew/homebrew#42261. Closes Homebrew/homebrew#42261.
-rw-r--r--Library/Homebrew/os/mac/xcode.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/os/mac/xcode.rb b/Library/Homebrew/os/mac/xcode.rb
index 2941f3d43..e6b236899 100644
--- a/Library/Homebrew/os/mac/xcode.rb
+++ b/Library/Homebrew/os/mac/xcode.rb
@@ -178,7 +178,7 @@ module OS
else
version = `/usr/bin/clang --version`
end
- version = version[%r{clang-(\d+\.\d+\.\d+)}, 1] || "0"
+ version = version[%r{clang-(\d+\.\d+\.\d+(\.\d+)?)}, 1] || "0"
version < latest_version
end