From 43c8223dcc0660852be56a5296d515a1a52a2784 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Fri, 21 Jul 2017 17:20:12 +0100 Subject: formula: ensure aliases don’t include full names. Aliases that include `/`s end up creating directories and this is bad. --- Library/Homebrew/formula.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Library') diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index b2e4ff988..939f356da 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -383,7 +383,9 @@ class Formula # All of aliases for the formula def aliases @aliases ||= if tap - tap.alias_reverse_table[full_name] || [] + tap.alias_reverse_table[full_name].to_a.map do |a| + a.split("/")[-1] + end else [] end -- cgit v1.2.3