From b578a47bb9fda8043d7bcff730dc5bf951df41c7 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Fri, 15 Mar 2013 00:28:18 +0000 Subject: 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. --- Library/Homebrew/formula_installer.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Library/Homebrew/formula_installer.rb') 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." -- cgit v1.2.3