diff options
| author | Mike McQuaid | 2017-07-21 17:20:54 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2017-07-21 17:20:54 +0100 |
| commit | fe35bb32e8f9afdd9dfeea6a657104b6a1d450bb (patch) | |
| tree | c136b0171cf734d1f4673ac6d692a7e9aa5bda12 /Library/Homebrew/tab.rb | |
| parent | 43c8223dcc0660852be56a5296d515a1a52a2784 (diff) | |
| download | brew-fe35bb32e8f9afdd9dfeea6a657104b6a1d450bb.tar.bz2 | |
tab: include aliases.
Including aliases in the tab allows e.g. `brew switch` to correctly
handle switching between different keg’s aliases.
Diffstat (limited to 'Library/Homebrew/tab.rb')
| -rw-r--r-- | Library/Homebrew/tab.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Library/Homebrew/tab.rb b/Library/Homebrew/tab.rb index 6d0a3d6d1..e7df88356 100644 --- a/Library/Homebrew/tab.rb +++ b/Library/Homebrew/tab.rb @@ -33,6 +33,7 @@ class Tab < OpenStruct "HEAD" => HOMEBREW_REPOSITORY.git_head, "compiler" => compiler, "stdlib" => stdlib, + "aliases" => formula.aliases, "runtime_dependencies" => formula.runtime_dependencies.map do |dep| f = dep.to_formula { "full_name" => f.full_name, "version" => f.version.to_s } @@ -185,6 +186,7 @@ class Tab < OpenStruct "HEAD" => nil, "stdlib" => nil, "compiler" => DevelopmentTools.default_compiler, + "aliases" => [], "runtime_dependencies" => [], "source" => { "path" => nil, @@ -328,6 +330,7 @@ class Tab < OpenStruct "HEAD" => self.HEAD, "stdlib" => (stdlib.to_s if stdlib), "compiler" => (compiler.to_s if compiler), + "aliases" => aliases, "runtime_dependencies" => runtime_dependencies, "source" => source, } |
