diff options
| author | Xu Cheng | 2015-09-13 17:23:17 +0800 |
|---|---|---|
| committer | Xu Cheng | 2015-09-13 17:23:17 +0800 |
| commit | e21bb27c2ecb66ad5001c6fd29fcd3382c25666d (patch) | |
| tree | 01a1b57e19ebf66cd66dbbedaa5d1b637319841a | |
| parent | f001cdf777f4ce3d4a6967925307361f3d01d313 (diff) | |
| download | brew-e21bb27c2ecb66ad5001c6fd29fcd3382c25666d.tar.bz2 | |
Formula: add alias_full_names
| -rw-r--r-- | Library/Homebrew/formula.rb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index a9fdb7c14..36eb41b5a 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -1026,7 +1026,13 @@ class Formula # an array of all aliases # @private def self.aliases - @aliases ||= (core_aliases + tap_aliases).uniq.sort + @aliases ||= (core_aliases + tap_aliases.map { |name| name.split("/")[-1] }).uniq.sort + end + + # an array of all aliases, , which the tap formulae have the fully-qualified name + # @private + def self.alias_full_names + @alias_full_names ||= core_aliases + tap_aliases end def self.[](name) |
