ARGV#resolved_formulae: use canonical_name to locate rack

Closes Homebrew/homebrew#42537.

Signed-off-by: Xu Cheng <xucheng@me.com>
This commit is contained in:
Xu Cheng 2015-08-06 15:33:53 +08:00
parent 74b18bfe12
commit df999067d6

View File

@ -27,7 +27,8 @@ module HomebrewArgvExtension
end end
f f
else else
Formulary.from_rack(HOMEBREW_CELLAR/name, spec(default=nil)) canonical_name = Formulary.canonical_name(name)
Formulary.from_rack(HOMEBREW_CELLAR/canonical_name, spec(default=nil))
end end
end end
end end