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/cmd/info.rb | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Library/Homebrew/cmd') diff --git a/Library/Homebrew/cmd/info.rb b/Library/Homebrew/cmd/info.rb index 655cbdeea..46857d1d7 100644 --- a/Library/Homebrew/cmd/info.rb +++ b/Library/Homebrew/cmd/info.rb @@ -103,6 +103,13 @@ module Homebrew extend self print " *" if keg.linked? puts tab = Tab.for_keg keg + + # Intentionally print no message if this is nil because it's unknown. + case tab.poured_from_bottle + when true then puts "Poured from bottle" + when false then puts "Built from source" + end + unless tab.used_options.empty? puts " Installed with: #{tab.used_options*', '}" end -- cgit v1.2.3