aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend
diff options
context:
space:
mode:
authorXu Cheng2015-08-06 15:33:53 +0800
committerXu Cheng2015-08-09 20:09:57 +0800
commitdf999067d69b660a978e52263eace80dc1786993 (patch)
tree4e57fc4f4bf5a5d1b0590e3c37e7840884c0071d /Library/Homebrew/extend
parent74b18bfe12a19c9a45d58d4f57c2b6f257b42d6e (diff)
downloadbrew-df999067d69b660a978e52263eace80dc1786993.tar.bz2
ARGV#resolved_formulae: use canonical_name to locate rack
Closes Homebrew/homebrew#42537. Signed-off-by: Xu Cheng <xucheng@me.com>
Diffstat (limited to 'Library/Homebrew/extend')
-rw-r--r--Library/Homebrew/extend/ARGV.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Homebrew/extend/ARGV.rb b/Library/Homebrew/extend/ARGV.rb
index 663ecf89b..133f1062b 100644
--- a/Library/Homebrew/extend/ARGV.rb
+++ b/Library/Homebrew/extend/ARGV.rb
@@ -27,7 +27,8 @@ module HomebrewArgvExtension
end
f
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