Downcase tap parameters in Formula.canonical_name

See previous commit's explanation.
This commit is contained in:
Max Howell 2012-03-18 01:51:10 +00:00
parent ceeb768c84
commit 3bfea440cb

View File

@ -291,7 +291,7 @@ class Formula
if name.include? "/"
if name =~ %r{(.+)/(.+)/(.+)}
tapd = HOMEBREW_REPOSITORY/"Library/Taps/#$1-#$2"
tapd = HOMEBREW_REPOSITORY/"Library/Taps"/"#$1-#$2".downcase
tapd.find_formula do |relative_pathname|
return "#{tapd}/#{relative_pathname}" if relative_pathname.stem.to_s == $3
end if tapd.directory?