From dbb527f352f2aaa248927c7a3abefe8bc1cda97a Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Mon, 21 Apr 2014 22:39:44 -0500 Subject: [PATCH] The argument to MacOS.locate is always a string --- Library/Homebrew/os/mac.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/os/mac.rb b/Library/Homebrew/os/mac.rb index 64b0878efb..a643294843 100644 --- a/Library/Homebrew/os/mac.rb +++ b/Library/Homebrew/os/mac.rb @@ -23,7 +23,7 @@ module OS # Don't call tools (cc, make, strip, etc.) directly! # Give the name of the binary you look for as a string to this method # in order to get the full path back as a Pathname. - (@locate ||= {}).fetch(tool.to_s) do |key| + (@locate ||= {}).fetch(tool) do |key| @locate[key] = if File.executable?(path = "/usr/bin/#{tool}") Pathname.new path # Homebrew GCCs most frequently; much faster to check this before xcrun