aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/formula.rb
diff options
context:
space:
mode:
authorMike McQuaid2017-07-30 16:02:49 +0100
committerGitHub2017-07-30 16:02:49 +0100
commite8c4989efbb58fb386f8ada32c0845f6dd8725a7 (patch)
tree95616679f90b808a2915aa4a656ce1ede33ff023 /Library/Homebrew/formula.rb
parent3821132f9e58dc7b72795978c9e9237b4c155b1b (diff)
parent1651647a3dc9dbc03ed3c5da06090228db4cd1a0 (diff)
downloadbrew-e8c4989efbb58fb386f8ada32c0845f6dd8725a7.tar.bz2
Merge pull request #2923 from MikeMcQuaid/alias-fixes
keg: correctly cleanup old aliases.
Diffstat (limited to 'Library/Homebrew/formula.rb')
-rw-r--r--Library/Homebrew/formula.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index 9a31c9e5e..cbd6257d2 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