aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2014-11-23 13:43:35 +0000
committerMike McQuaid2014-11-23 21:24:00 +0000
commit85f9883329497c01a179def2f6ad1c68a07b662c (patch)
treeda971fd707135b478973f1926f415a60314c628f /Library
parent54347843ed9434d436ad65710378f0010c05412f (diff)
downloadbrew-85f9883329497c01a179def2f6ad1c68a07b662c.tar.bz2
formula_installer: don't always post_install.
We don't want to do so when building bottles or we can end up with some weird stuff being bottled unintentionally (and it'll run twice; once before bottling, once afterwards). Fixes Homebrew/homebrew#34349. Closes Homebrew/homebrew#34397. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formula_installer.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb
index fe3a00fd2..09a651eaa 100644
--- a/Library/Homebrew/formula_installer.rb
+++ b/Library/Homebrew/formula_installer.rb
@@ -395,7 +395,12 @@ class FormulaInstaller
link(keg)
fix_install_names(keg) if OS.mac?
- post_install
+ if build_bottle?
+ ohai "Not running post_install as we're building a bottle"
+ puts "You can run it manually using `brew postinstall #{formula.name}`"
+ else
+ post_install
+ end
ohai "Summary" if verbose? or show_summary_heading?
puts summary