aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorJack Nagel2014-03-04 14:06:25 -0600
committerJack Nagel2014-03-04 14:06:25 -0600
commit4c0db19538d69cc2d00f8455b94c85d75c9a4203 (patch)
tree49547fcc568144c751f1e6492772a0184c62857c /Library/Homebrew/cmd
parente8727a4eeea08b21b10e561685c898100e3697b6 (diff)
downloadbrew-4c0db19538d69cc2d00f8455b94c85d75c9a4203.tar.bz2
Extract installer setup to prelude method
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/install.rb1
-rw-r--r--Library/Homebrew/cmd/upgrade.rb1
2 files changed, 2 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/install.rb b/Library/Homebrew/cmd/install.rb
index cd3c3c8d2..bd90e9cc3 100644
--- a/Library/Homebrew/cmd/install.rb
+++ b/Library/Homebrew/cmd/install.rb
@@ -104,6 +104,7 @@ module Homebrew extend self
def install_formula f
fi = FormulaInstaller.new(f)
+ fi.prelude
fi.install
fi.caveats
fi.finish
diff --git a/Library/Homebrew/cmd/upgrade.rb b/Library/Homebrew/cmd/upgrade.rb
index 644e61184..02cb85170 100644
--- a/Library/Homebrew/cmd/upgrade.rb
+++ b/Library/Homebrew/cmd/upgrade.rb
@@ -59,6 +59,7 @@ module Homebrew extend self
installer = FormulaInstaller.new(f)
installer.options |= Tab.for_formula(f).used_options
installer.show_header = false
+ installer.prelude
oh1 "Upgrading #{f.name}"