From 4991039809c7319fb91e6c10c3e8accf28a0d362 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Wed, 8 Mar 2017 08:51:41 +0000 Subject: [PATCH] keg: resolve rack aliases correctly. Don't use the basename but instead use the Formulary logic for rack formula resolution. Fixes #2288. --- Library/Homebrew/keg.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/keg.rb b/Library/Homebrew/keg.rb index 9ebfc3bc32..86733860cd 100644 --- a/Library/Homebrew/keg.rb +++ b/Library/Homebrew/keg.rb @@ -466,7 +466,7 @@ class Keg end def aliases - Formula[rack.basename.to_s].aliases + Formulary.from_rack(rack).aliases rescue FormulaUnavailableError [] end