diff --git a/Library/Homebrew/cmd/fetch.rb b/Library/Homebrew/cmd/fetch.rb index 71b9f65732..5ac41a4d3b 100644 --- a/Library/Homebrew/cmd/fetch.rb +++ b/Library/Homebrew/cmd/fetch.rb @@ -17,6 +17,8 @@ module Homebrew puts "Fetching: #{bucket * ', '}" if bucket.size > 1 bucket.each do |f| + f.print_tap_action :verb => "Fetching" + if fetch_bottle?(f) fetch_formula(f.bottle) else diff --git a/Library/Homebrew/cmd/install.rb b/Library/Homebrew/cmd/install.rb index b85092467d..89eec50fb9 100644 --- a/Library/Homebrew/cmd/install.rb +++ b/Library/Homebrew/cmd/install.rb @@ -102,6 +102,8 @@ module Homebrew end def install_formula f + f.print_tap_action + fi = FormulaInstaller.new(f) fi.options = f.build.used_options fi.ignore_deps = ARGV.ignore_deps? diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index e2b602e4a9..3778888129 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -408,6 +408,13 @@ class Formula end end + def print_tap_action options={} + if tap? + verb = options[:verb] || "Installing" + ohai "#{verb} #{name} from #{tap}" + end + end + # True if this formula is provided by Homebrew itself def core_formula? path == Formula.path(name)