aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2013-07-21 07:56:30 -0500
committerJack Nagel2013-07-21 07:56:30 -0500
commit8dd5a913a31fe06bfef53e06103b3e7b84ae6f73 (patch)
tree45b3390b29f34a833d1b4146f5b278634611a724 /Library
parent867f60b7ab08722763312c91a2400f93d3248e0b (diff)
downloadhomebrew-8dd5a913a31fe06bfef53e06103b3e7b84ae6f73.tar.bz2
These should be integers
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/macos.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/Library/Homebrew/macos.rb b/Library/Homebrew/macos.rb
index 5e371d83d..1483e42a6 100644
--- a/Library/Homebrew/macos.rb
+++ b/Library/Homebrew/macos.rb
@@ -39,7 +39,6 @@ module MacOS extend self
end
end
-
def dev_tools_path
@dev_tools_path ||= \
if File.exist? MacOS::CLT::STANDALONE_PKG_PATH and
@@ -110,7 +109,7 @@ module MacOS extend self
def gcc_40_build_version
@gcc_40_build_version ||=
if (path = locate("gcc-4.0"))
- %x{#{path} --version}[/build (\d{4,})/, 1]
+ %x{#{path} --version}[/build (\d{4,})/, 1].to_i
end
end
alias_method :gcc_4_0_build_version, :gcc_40_build_version
@@ -142,7 +141,7 @@ module MacOS extend self
def clang_build_version
@clang_build_version ||=
if (path = locate("clang"))
- %x{#{path} --version}[%r[clang-(\d{2,})], 1]
+ %x{#{path} --version}[%r[clang-(\d{2,})], 1].to_i
end
end