diff options
| author | Mike McQuaid | 2013-03-15 00:28:18 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2013-03-20 23:06:38 +0000 |
| commit | b578a47bb9fda8043d7bcff730dc5bf951df41c7 (patch) | |
| tree | 6b2fdedca7178637717953dd1c331062578b8349 /Library/Homebrew/formula_installer.rb | |
| parent | 81f9aef2458685e9416f1d8c4d0c86f340d69cfa (diff) | |
| download | brew-b578a47bb9fda8043d7bcff730dc5bf951df41c7.tar.bz2 | |
brew-info: specify whether poured or built.
- Store in the tab if a bottle was poured for the build.
- Add an additional line of output to `brew info` outputting whether
the formula was built from source or poured from a bottle.
Closes Homebrew/homebrew#18430.
Closes Homebrew/homebrew#18475.
Diffstat (limited to 'Library/Homebrew/formula_installer.rb')
| -rw-r--r-- | Library/Homebrew/formula_installer.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb index 2eadc8c63..f41eeffdb 100644 --- a/Library/Homebrew/formula_installer.rb +++ b/Library/Homebrew/formula_installer.rb @@ -97,6 +97,10 @@ class FormulaInstaller if pour_bottle? pour @poured_bottle = true + tab = Tab.for_keg f.prefix + tab.poured_from_bottle = true + tab.tabfile.delete rescue nil + tab.write end rescue opoo "Bottle installation failed: building from source." |
