diff options
| author | Mike McQuaid | 2017-07-30 16:02:49 +0100 | 
|---|---|---|
| committer | GitHub | 2017-07-30 16:02:49 +0100 | 
| commit | e8c4989efbb58fb386f8ada32c0845f6dd8725a7 (patch) | |
| tree | 95616679f90b808a2915aa4a656ce1ede33ff023 /Library/Homebrew/formula.rb | |
| parent | 3821132f9e58dc7b72795978c9e9237b4c155b1b (diff) | |
| parent | 1651647a3dc9dbc03ed3c5da06090228db4cd1a0 (diff) | |
| download | brew-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.rb | 4 | 
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 | 
